Udostępnij za pośrednictwem


Extensions.CreateComposeDeploymentAsync Method

Definition

Overloads

CreateComposeDeploymentAsync(FabricClient+ComposeDeploymentClient, ComposeDeploymentDescription)

Creates and instantiates the Service Fabric compose deployment described by the compose deployment description.

CreateComposeDeploymentAsync(FabricClient+ComposeDeploymentClient, ComposeDeploymentDescription, TimeSpan)

Creates and instantiates the Service Fabric compose deployment described by the compose deployment description.

CreateComposeDeploymentAsync(FabricClient+ComposeDeploymentClient, ComposeDeploymentDescription, TimeSpan, CancellationToken)

Creates and instantiates the Service Fabric compose deployment described by the compose deployment description.

CreateComposeDeploymentAsync(FabricClient+ComposeDeploymentClient, ComposeDeploymentDescription)

Creates and instantiates the Service Fabric compose deployment described by the compose deployment description.

public static System.Threading.Tasks.Task CreateComposeDeploymentAsync (this System.Fabric.FabricClient.ComposeDeploymentClient client, Microsoft.ServiceFabric.Preview.Client.Description.ComposeDeploymentDescription composeDeploymentDescription);
static member CreateComposeDeploymentAsync : System.Fabric.FabricClient.ComposeDeploymentClient * Microsoft.ServiceFabric.Preview.Client.Description.ComposeDeploymentDescription -> System.Threading.Tasks.Task
<Extension()>
Public Function CreateComposeDeploymentAsync (client As FabricClient.ComposeDeploymentClient, composeDeploymentDescription As ComposeDeploymentDescription) As Task

Parameters

composeDeploymentDescription
ComposeDeploymentDescription

The ComposeDeploymentDescription that describes the compose deployment to be created.

Returns

A Task representing the operation.

Exceptions

The FabricClient object is in a closed state. Dispose of the FabricClient object you are using and instantiate a new FabricClient object.

ImageBuilderValidationError: The create application request is not valid with respect to the provisioned manifests for the requested application type.

InvalidNameUri: The application name is not a valid Naming URI.

CorruptedImageStoreObjectFound: A corrupted file was encountered on the image store.

ComposeDeploymentAlreadyExists: The compose deployment has already been created.

ApplicationAlreadyExists: The application has already been created so that compose deployment can not be created using the same name.

There was an error accessing a file on the Image Store.

A required file was not found .

A path to an Image Store file/directory was too long.

ImageStoreIOException: There was an IO error communicating with the Image Store.

The request timed out but may have already been accepted for processing by the system.

The request was canceled before the timeout expired but may have already been accepted for processing by the system.

The parameters specified via the ComposeDeploymentDescription are incorrect.

Applies to

CreateComposeDeploymentAsync(FabricClient+ComposeDeploymentClient, ComposeDeploymentDescription, TimeSpan)

Creates and instantiates the Service Fabric compose deployment described by the compose deployment description.

public static System.Threading.Tasks.Task CreateComposeDeploymentAsync (this System.Fabric.FabricClient.ComposeDeploymentClient client, Microsoft.ServiceFabric.Preview.Client.Description.ComposeDeploymentDescription composeDeploymentDescription, TimeSpan timeout);
static member CreateComposeDeploymentAsync : System.Fabric.FabricClient.ComposeDeploymentClient * Microsoft.ServiceFabric.Preview.Client.Description.ComposeDeploymentDescription * TimeSpan -> System.Threading.Tasks.Task
<Extension()>
Public Function CreateComposeDeploymentAsync (client As FabricClient.ComposeDeploymentClient, composeDeploymentDescription As ComposeDeploymentDescription, timeout As TimeSpan) As Task

Parameters

composeDeploymentDescription
ComposeDeploymentDescription

The ComposeDeploymentDescription that describes the compose deployment to be created.

timeout
TimeSpan

Defines the maximum amount of time the system will allow this operation to continue before returning TimeoutException.

Returns

A Task representing the operation.

Exceptions

The FabricClient object is in a closed state. Dispose of the FabricClient object you are using and instantiate a new FabricClient object.

ImageBuilderValidationError: The create application request is not valid with respect to the provisioned manifests for the requested application type.

InvalidNameUri: The application name is not a valid Naming URI.

CorruptedImageStoreObjectFound: A corrupted file was encountered on the image store.

ComposeDeploymentAlreadyExists: The compose deployment has already been created.

ApplicationAlreadyExists: The application has already been created so that compose deployment can not be created using the same name.

There was an error accessing a file on the Image Store.

A required file was not found on the Image Store.

A required directory was not found on the Image Store.

A path to an Image Store file/directory was too long.

ImageStoreIOException: There was an IO error communicating with the Image Store.

The request timed out but may have already been accepted for processing by the system.

The request was canceled before the timeout expired but may have already been accepted for processing by the system.

The parameters specified via the ComposeDeploymentDescription are incorrect.

Applies to

CreateComposeDeploymentAsync(FabricClient+ComposeDeploymentClient, ComposeDeploymentDescription, TimeSpan, CancellationToken)

Creates and instantiates the Service Fabric compose deployment described by the compose deployment description.

public static System.Threading.Tasks.Task CreateComposeDeploymentAsync (this System.Fabric.FabricClient.ComposeDeploymentClient client, Microsoft.ServiceFabric.Preview.Client.Description.ComposeDeploymentDescription composeDeploymentDescription, TimeSpan timeout, System.Threading.CancellationToken cancellationToken);
static member CreateComposeDeploymentAsync : System.Fabric.FabricClient.ComposeDeploymentClient * Microsoft.ServiceFabric.Preview.Client.Description.ComposeDeploymentDescription * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function CreateComposeDeploymentAsync (client As FabricClient.ComposeDeploymentClient, composeDeploymentDescription As ComposeDeploymentDescription, timeout As TimeSpan, cancellationToken As CancellationToken) As Task

Parameters

composeDeploymentDescription
ComposeDeploymentDescription

The ComposeDeploymentDescription that describes the compose deployment to be created.

timeout
TimeSpan

Defines the maximum amount of time the system will allow this operation to continue before returning TimeoutException.

cancellationToken
CancellationToken

The CancellationToken that the operation is observing. It can be used to propagate notification that the operation should be canceled.

Returns

A Task representing the operation.

Exceptions

The FabricClient object is in a closed state. Dispose of the FabricClient object you are using and instantiate a new FabricClient object.

ImageBuilderValidationError: The create application request is not valid with respect to the provisioned manifests for the requested application type.

InvalidNameUri: The application name is not a valid Naming URI.

CorruptedImageStoreObjectFound: A corrupted file was encountered on the image store.

ComposeDeploymentAlreadyExists: The compose deployment has already been created.

ApplicationAlreadyExists: The application has already been created so that compose deployment can not be created using the same name.

There was an error accessing a file on the Image Store.

A required file was not found on the Image Store.

A required directory was not found on the Image Store.

A path to an Image Store file/directory was too long.

ImageStoreIOException: There was an IO error communicating with the Image Store.

The request timed out but may have already been accepted for processing by the system.

The request was canceled before the timeout expired but may have already been accepted for processing by the system.

The parameters specified via the ComposeDeploymentDescription are incorrect.

Applies to