Aracılığıyla paylaş


FabricClient.ServiceGroupManagementClient.CreateServiceGroupFromTemplateAsync Method

Definition

Overloads

CreateServiceGroupFromTemplateAsync(ServiceGroupFromTemplateDescription)

Creates a service group from a Service Group Template that is pre-defined in the current Application Manifest.

CreateServiceGroupFromTemplateAsync(ServiceGroupFromTemplateDescription, TimeSpan, CancellationToken)

Creates a service group from a Service Group Template that is pre-defined in the current Application Manifest.

CreateServiceGroupFromTemplateAsync(Uri, Uri, String, Byte[])

Creates a Service Group from a Service Group Template that is pre-defined in the current Application Manifest.

CreateServiceGroupFromTemplateAsync(Uri, Uri, String, Byte[], TimeSpan, CancellationToken)

Creates a service group from a Service Group Template that is pre-defined in the current Application Manifest.

CreateServiceGroupFromTemplateAsync(ServiceGroupFromTemplateDescription)

Creates a service group from a Service Group Template that is pre-defined in the current Application Manifest.

public System.Threading.Tasks.Task CreateServiceGroupFromTemplateAsync (System.Fabric.Description.ServiceGroupFromTemplateDescription serviceGroupFromTemplateDescription);
member this.CreateServiceGroupFromTemplateAsync : System.Fabric.Description.ServiceGroupFromTemplateDescription -> System.Threading.Tasks.Task
Public Function CreateServiceGroupFromTemplateAsync (serviceGroupFromTemplateDescription As ServiceGroupFromTemplateDescription) As Task

Parameters

serviceGroupFromTemplateDescription
ServiceGroupFromTemplateDescription

Describes the Service Group to be created from Service Group Template specified in Application Manifest.

Returns

The task representing the asynchronous service group creation operation.

Applies to

CreateServiceGroupFromTemplateAsync(ServiceGroupFromTemplateDescription, TimeSpan, CancellationToken)

Creates a service group from a Service Group Template that is pre-defined in the current Application Manifest.

public System.Threading.Tasks.Task CreateServiceGroupFromTemplateAsync (System.Fabric.Description.ServiceGroupFromTemplateDescription serviceGroupFromTemplateDescription, TimeSpan timeout, System.Threading.CancellationToken cancellationToken);
member this.CreateServiceGroupFromTemplateAsync : System.Fabric.Description.ServiceGroupFromTemplateDescription * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function CreateServiceGroupFromTemplateAsync (serviceGroupFromTemplateDescription As ServiceGroupFromTemplateDescription, timeout As TimeSpan, cancellationToken As CancellationToken) As Task

Parameters

serviceGroupFromTemplateDescription
ServiceGroupFromTemplateDescription

Describes the Service Group to be created from Service Group Template specified in Application Manifest.

timeout
TimeSpan

Maximum allowed time for the operation to complete before TimeoutException is thrown.

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 cancelled.

Returns

The task representing the asynchronous service group creation operation.

Applies to

CreateServiceGroupFromTemplateAsync(Uri, Uri, String, Byte[])

Creates a Service Group from a Service Group Template that is pre-defined in the current Application Manifest.

public System.Threading.Tasks.Task CreateServiceGroupFromTemplateAsync (Uri applicationName, Uri serviceName, string serviceTypeName, byte[] initializationData);
member this.CreateServiceGroupFromTemplateAsync : Uri * Uri * string * byte[] -> System.Threading.Tasks.Task
Public Function CreateServiceGroupFromTemplateAsync (applicationName As Uri, serviceName As Uri, serviceTypeName As String, initializationData As Byte()) As Task

Parameters

applicationName
Uri

Application name for the Service Group

serviceName
Uri

Service name for the Service Group

serviceTypeName
String

Service Type Name for the Service Group

initializationData
Byte[]

Initialization data to pass into the Service Group instance

Returns

The task representing the asynchronous service group creation operation.

Applies to

CreateServiceGroupFromTemplateAsync(Uri, Uri, String, Byte[], TimeSpan, CancellationToken)

Creates a service group from a Service Group Template that is pre-defined in the current Application Manifest.

public System.Threading.Tasks.Task CreateServiceGroupFromTemplateAsync (Uri applicationName, Uri serviceName, string serviceTypeName, byte[] initializationData, TimeSpan timeout, System.Threading.CancellationToken cancellationToken);
member this.CreateServiceGroupFromTemplateAsync : Uri * Uri * string * byte[] * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function CreateServiceGroupFromTemplateAsync (applicationName As Uri, serviceName As Uri, serviceTypeName As String, initializationData As Byte(), timeout As TimeSpan, cancellationToken As CancellationToken) As Task

Parameters

applicationName
Uri

Application name for the Service Group

serviceName
Uri

Service name for the Service Group

serviceTypeName
String

Service Type Name for the Service Group

initializationData
Byte[]

Initialization data to pass into the Service Group instance

timeout
TimeSpan

Maximum allowed time for the operation to complete before TimeoutException is thrown.

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 cancelled.

Returns

The task representing the asynchronous service group creation operation.

Applies to