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

Parameters

applicationDescription
ApplicationDescription

The description of the application.

Returns

System.Threading.Tasks.Task

A System.Threading.Tasks.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.

System.UnauthorizedAccessException

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

System.IO.FileNotFoundException

A required file was not found on the Image Store.

System.IO.DirectoryNotFoundException

A required directory was not found on the Image Store.

System.IO.PathTooLongException

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

System.IO.IOException

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

System.TimeoutException

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

System.OperationCanceledException

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

System.ArgumentException

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

Parameters

applicationDescription
ApplicationDescription

The description of the application.

timeout
System.TimeSpan

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

cancellationToken
System.Threading.CancellationToken

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

Returns

System.Threading.Tasks.Task

A System.Threading.Tasks.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.

System.UnauthorizedAccessException

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

System.IO.FileNotFoundException

A required file was not found on the Image Store.

System.IO.DirectoryNotFoundException

A required directory was not found on the Image Store.

System.IO.PathTooLongException

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

System.IO.IOException

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

System.TimeoutException

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

System.OperationCanceledException

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

System.ArgumentException

The application capacity parameters specified are incorrect. Refer to MinimumNodes, MaximumNodes and Metrics for correct specification of application capacity parameters.

Applies to