Share via


FabricClient.ApplicationManagementClient.CreateApplicationAsync Method

Definition

Overloads

CreateApplicationAsync(ApplicationDescription)

Creates and instantiates the specific Service Fabric application.

CreateApplicationAsync(ApplicationDescription, TimeSpan, CancellationToken)

Creates and instantiates the specific Service Fabric application.

CreateApplicationAsync(ApplicationDescription)

Creates and instantiates the specific Service Fabric application.

public System.Threading.Tasks.Task CreateApplicationAsync (System.Fabric.Description.ApplicationDescription applicationDescription);
member this.CreateApplicationAsync : System.Fabric.Description.ApplicationDescription -> System.Threading.Tasks.Task
Public Function CreateApplicationAsync (applicationDescription As ApplicationDescription) As Task

Parameters

applicationDescription
ApplicationDescription

The description of the application.

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.

ApplicationAlreadyExists: The application has already been created.

ApplicationTypeNotFound: The requested application type has not been provisioned yet.

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 application capacity parameters specified are incorrect. Refer to MinimumNodes, MaximumNodes and Metrics for correct specification of application capacity parameters.

Applies to

CreateApplicationAsync(ApplicationDescription, TimeSpan, CancellationToken)

Creates and instantiates the specific Service Fabric application.

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

Parameters

applicationDescription
ApplicationDescription

The description of the application.

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

ApplicationAlreadyExists: The application has already been created.

ApplicationTypeNotFound: The requested application type has not been provisioned yet.

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 application capacity parameters specified are incorrect. Refer to MinimumNodes, MaximumNodes and Metrics for correct specification of application capacity parameters.

Applies to