Skip to content

Commit 6186bb2

Browse files
committed
Add the AsyncCompletionOption enumeration for specifying when tasks should be considered complete
1 parent 5f1ab61 commit 6186bb2

3 files changed

Lines changed: 26 additions & 0 deletions

File tree

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
namespace net.openstack.Core
2+
{
3+
using System.Threading.Tasks;
4+
5+
/// <summary>
6+
/// Specifies when a <see cref="Task"/> representing an asynchronous server operation
7+
/// should be considered complete.
8+
/// </summary>
9+
/// <preliminary/>
10+
public enum AsyncCompletionOption
11+
{
12+
/// <summary>
13+
/// The <see cref="Task"/> representing the operation is considered complete after the
14+
/// request has been submitted to the server.
15+
/// </summary>
16+
RequestSubmitted,
17+
18+
/// <summary>
19+
/// The <see cref="Task"/> representing the operation is considered complete after the
20+
/// server has completed processing the request.
21+
/// </summary>
22+
RequestCompleted,
23+
}
24+
}

src/corelib/corelib.v3.5.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
<Reference Include="WindowsBase" />
6161
</ItemGroup>
6262
<ItemGroup>
63+
<Compile Include="Core\AsyncCompletionOption.cs" />
6364
<Compile Include="Core\Caching\ICache`1.cs" />
6465
<Compile Include="Core\Caching\NamespaceDoc.cs" />
6566
<Compile Include="Core\Compat\Funcs.cs" />

src/corelib/corelib.v4.0.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
<Reference Include="WindowsBase" />
5757
</ItemGroup>
5858
<ItemGroup>
59+
<Compile Include="Core\AsyncCompletionOption.cs" />
5960
<Compile Include="Core\Caching\ICache`1.cs" />
6061
<Compile Include="Core\Caching\NamespaceDoc.cs" />
6162
<Compile Include="Core\Domain\Converters\NamespaceDoc.cs" />

0 commit comments

Comments
 (0)