Skip to content

Commit

Permalink
Updating CFP to 2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ealsur committed Sep 14, 2018
1 parent ef36074 commit a8f7e88
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<Description>This package contains binding extensions for Azure Cosmos DB.</Description>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Azure.DocumentDB.ChangeFeedProcessor" Version="2.0.6" />
<PackageReference Include="Microsoft.Azure.DocumentDB.ChangeFeedProcessor" Version="2.1.0" />
<PackageReference Include="Microsoft.Azure.WebJobs" Version="3.0.0-rc1" />
<PackageReference Include="Microsoft.CSharp" Version="4.5.0" />
</ItemGroup>
Expand Down
11 changes: 8 additions & 3 deletions test/WebJobs.Extensions.CosmosDB.Tests/CosmosDBTestUtility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,14 @@ public static IOrderedQueryable<T> AsOrderedQueryable<T, TKey>(this IEnumerable<

public static DocumentClientException CreateDocumentClientException(HttpStatusCode status)
{
var headers = new NameValueCollection();
var parameters = new object[] { null, null, headers, status, null };
return Activator.CreateInstance(typeof(DocumentClientException), BindingFlags.NonPublic | BindingFlags.Instance, null, parameters, null) as DocumentClientException;
Type t = typeof(DocumentClientException);

var constructor = t.GetConstructor(
BindingFlags.Public | BindingFlags.Instance | BindingFlags.NonPublic,
null, new[] { typeof(string), typeof(Exception), typeof(HttpStatusCode?), typeof(Uri), typeof(string) }, null);

object ex = constructor.Invoke(new object[] { string.Empty, new Exception(), status, null, string.Empty });
return ex as DocumentClientException;
}

public static ParameterInfo GetInputParameter<T>()
Expand Down

0 comments on commit a8f7e88

Please sign in to comment.