Dela via


FabricRuntime.RegisterServiceGroupFactoryAsync Method

Definition

Asynchronously registers the specified ServiceGroupFactory for the specified service group type with the specified timeout and cancellationToken.

public System.Threading.Tasks.Task RegisterServiceGroupFactoryAsync (string serviceGroupTypeName, System.Fabric.ServiceGroupFactory factory, TimeSpan timeout, System.Threading.CancellationToken cancellationToken);
member this.RegisterServiceGroupFactoryAsync : string * System.Fabric.ServiceGroupFactory * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function RegisterServiceGroupFactoryAsync (serviceGroupTypeName As String, factory As ServiceGroupFactory, timeout As TimeSpan, cancellationToken As CancellationToken) As Task

Parameters

serviceGroupTypeName
String

The type name of the ServiceGroup service type (as a string). This should match the type of the service group type as specified in the manifests and/or the CreateServiceGroup command.

factory
ServiceGroupFactory

The ServiceGroupFactory which can create the specified service group type.

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