FabricClient.ServiceGroupManagementClient.CreateServiceGroupAsync 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.
Overloads
CreateServiceGroupAsync(ServiceGroupDescription) |
Asynchronously creates a service group from the given ServiceGroupDescription. |
CreateServiceGroupAsync(ServiceGroupDescription, TimeSpan, CancellationToken) |
Asynchronously creates a service group from the given ServiceGroupDescription with the provided timeout and CancellationToken. |
CreateServiceGroupAsync(ServiceGroupDescription)
Asynchronously creates a service group from the given ServiceGroupDescription.
public System.Threading.Tasks.Task CreateServiceGroupAsync (System.Fabric.Description.ServiceGroupDescription description);
member this.CreateServiceGroupAsync : System.Fabric.Description.ServiceGroupDescription -> System.Threading.Tasks.Task
Public Function CreateServiceGroupAsync (description As ServiceGroupDescription) As Task
Parameters
- description
- ServiceGroupDescription
The ServiceGroupDescription which describes the group and its members.
Returns
The task representing the asynchronous service group creation operation.
Applies to
CreateServiceGroupAsync(ServiceGroupDescription, TimeSpan, CancellationToken)
Asynchronously creates a service group from the given ServiceGroupDescription with the provided timeout and CancellationToken.
public System.Threading.Tasks.Task CreateServiceGroupAsync (System.Fabric.Description.ServiceGroupDescription description, TimeSpan timeout, System.Threading.CancellationToken cancellationToken);
member this.CreateServiceGroupAsync : System.Fabric.Description.ServiceGroupDescription * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function CreateServiceGroupAsync (description As ServiceGroupDescription, timeout As TimeSpan, cancellationToken As CancellationToken) As Task
Parameters
- description
- ServiceGroupDescription
The ServiceGroupDescription which describes the group and its members.
- timeout
- TimeSpan
Timespan that defines the maximum amount of time Service Fabric will allow this operation to continue before returning a Timeout Exception.
- cancellationToken
- CancellationToken
The CancellationToken object 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 service group creation operation.