FabricRuntime.GetNodeContextAsync(TimeSpan, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets Node Context from Fabric Node asynchronously with timeout and cancellation token.
public static System.Threading.Tasks.Task<System.Fabric.NodeContext> GetNodeContextAsync (TimeSpan timeout, System.Threading.CancellationToken cancellationToken);
static member GetNodeContextAsync : TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.NodeContext>
Public Shared Function GetNodeContextAsync (timeout As TimeSpan, cancellationToken As CancellationToken) As Task(Of NodeContext)
Parameters
- timeout
- TimeSpan
The maximum amount of time Service Fabric will allow this operation to continue before returning a TimeoutException
- cancellationToken
- CancellationToken
The CancellationToken that the operation is observing. It can be used to send a notification that the operation should be canceled. Note that cancellation is advisory and that the operation may still be completed even if it is canceled.
Returns
The task representing the asynchronous operation.
Applies to
Azure SDK for .NET