FabricRuntime.GetActivationContextAsync(TimeSpan, CancellationToken) Method

Definition

Retrieves the current FabricRuntime’s CodePackageActivationContext asynchronously with the specified timeout and cancellationToken.

public static System.Threading.Tasks.Task<System.Fabric.CodePackageActivationContext> GetActivationContextAsync (TimeSpan timeout, System.Threading.CancellationToken cancellationToken);
static member GetActivationContextAsync : TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.CodePackageActivationContext>
Public Shared Function GetActivationContextAsync (timeout As TimeSpan, cancellationToken As CancellationToken) As Task(Of CodePackageActivationContext)

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