Skip to content

Commit

Permalink
Samples for Batch API (#941)
Browse files Browse the repository at this point in the history
* Batch API Sample

* Dispose BatchResponse consistently for simplicity

* More polish to sample

* Minor typos

* Minor cleanup bug

* Unexpected error handling; minor tweaks

* Dispose the streams

* Use SDK v3.4
  • Loading branch information
abhijitpai authored and kirankumarkolli committed Nov 8, 2019
1 parent 6e9bf43 commit 14849dc
Show file tree
Hide file tree
Showing 3 changed files with 535 additions and 2 deletions.
22 changes: 22 additions & 0 deletions Microsoft.Azure.Cosmos.Samples/Usage/Batch/Batch.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
<AssemblyName>Cosmos.Samples.Batch</AssemblyName>
<RootNamespace>Cosmos.Samples.Batch</RootNamespace>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Configuration" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="2.2.0" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.2" />
<PackageReference Include="Microsoft.Azure.Cosmos" Version="3.4" />
</ItemGroup>
<ItemGroup>
<None Include="..\AppSettings.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
</Project>
Loading

0 comments on commit 14849dc

Please sign in to comment.