Udostępnij za pośrednictwem


FabricClient.ApplicationManagementClient.UnprovisionApplicationAsync Method

Definition

Overloads

UnprovisionApplicationAsync(UnprovisionApplicationTypeDescription)

Unregisters and removes a Service Fabric application type from the cluster.

UnprovisionApplicationAsync(String, String)

Unregisters and removes a Service Fabric application type from the cluster.

UnprovisionApplicationAsync(UnprovisionApplicationTypeDescription, TimeSpan, CancellationToken)

Unregisters and removes a Service Fabric application type from the cluster.

UnprovisionApplicationAsync(String, String, TimeSpan, CancellationToken)

Unregisters and removes a Service Fabric application type from the cluster.

UnprovisionApplicationAsync(UnprovisionApplicationTypeDescription)

Unregisters and removes a Service Fabric application type from the cluster.

public System.Threading.Tasks.Task UnprovisionApplicationAsync (System.Fabric.Description.UnprovisionApplicationTypeDescription description);
member this.UnprovisionApplicationAsync : System.Fabric.Description.UnprovisionApplicationTypeDescription -> System.Threading.Tasks.Task
Public Function UnprovisionApplicationAsync (description As UnprovisionApplicationTypeDescription) As Task

Parameters

description
UnprovisionApplicationTypeDescription

Describes parameters for the unprovision operation.

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.

ApplicationTypeInUse: The application type is being used by one or more applications.

ApplicationNotFound: The application does not exist.

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.

Remarks

This method can only be called if all application instance of the application type has been deleted. Once the application type is unregistered, no new application instance can be created for this particular application type.

Applies to

UnprovisionApplicationAsync(String, String)

Unregisters and removes a Service Fabric application type from the cluster.

public System.Threading.Tasks.Task UnprovisionApplicationAsync (string applicationTypeName, string applicationTypeVersion);
member this.UnprovisionApplicationAsync : string * string -> System.Threading.Tasks.Task
Public Function UnprovisionApplicationAsync (applicationTypeName As String, applicationTypeVersion As String) As Task

Parameters

applicationTypeName
String

The name of the application type.

applicationTypeVersion
String

The version of the application type.

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.

ApplicationTypeInUse: The application type is being used by one or more applications.

ApplicationNotFound: The application does not exist.

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.

Remarks

This method can only be called if all application instance of the application type has been deleted. Once the application type is unregistered, no new application instance can be created for this particular application type.

Applies to

UnprovisionApplicationAsync(UnprovisionApplicationTypeDescription, TimeSpan, CancellationToken)

Unregisters and removes a Service Fabric application type from the cluster.

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

Parameters

description
UnprovisionApplicationTypeDescription

Describes parameters for the unprovision operation.

timeout
TimeSpan

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.

ApplicationTypeInUse: The application type is being used by one or more applications.

ApplicationNotFound: The application does not exist.

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.

Remarks

This method can only be called if all application instance of the application type has been deleted. Once the application type is unregistered, no new application instance can be created for this particular application type.

Applies to

UnprovisionApplicationAsync(String, String, TimeSpan, CancellationToken)

Unregisters and removes a Service Fabric application type from the cluster.

public System.Threading.Tasks.Task UnprovisionApplicationAsync (string applicationTypeName, string applicationTypeVersion, TimeSpan timeout, System.Threading.CancellationToken cancellationToken);
member this.UnprovisionApplicationAsync : string * string * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function UnprovisionApplicationAsync (applicationTypeName As String, applicationTypeVersion As String, timeout As TimeSpan, cancellationToken As CancellationToken) As Task

Parameters

applicationTypeName
String

The name of the application type.

applicationTypeVersion
String

The version of the application type.

timeout
TimeSpan

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.

ApplicationTypeInUse: The application type is being used by one or more applications.

ApplicationNotFound: The application does not exist.

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.

Remarks

This method can only be called if all application instance of the application type has been deleted. Once the application type is unregistered, no new application instance can be created for this particular application type.

Applies to