- Notifications
You must be signed in to change notification settings - Fork 51
/
Copy pathIAsyncMonitor.cs
25 lines (23 loc) · 1.08 KB
/
IAsyncMonitor.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
namespaceMicrosoft.Graph
{
usingSystem;
usingSystem.Threading;
usingSystem.Threading.Tasks;
/// <summary>
/// Monitor for async operations to the Graph service on the client.
/// </summary>
/// <typeparam name="T">The object type to return.</typeparam>
publicinterfaceIAsyncMonitor<T>
{
/// <summary>
/// Poll to check for completion of an async call to the Graph service.
/// </summary>
/// <param name="progress">The progress status.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>The operation task.</returns>
Task<T>PollForOperationCompletionAsync(IProgress<AsyncOperationStatus>progress,CancellationTokencancellationToken);
}
}