다음을 통해 공유


FabricClient.ServiceManagementClient.GetServiceManifestAsync Method

Definition

Overloads

GetServiceManifestAsync(String, String, String)

Gets the provisioned service manifest document in the specified application type name and application type version.

GetServiceManifestAsync(String, String, String, TimeSpan, CancellationToken)

Gets the provisioned service manifest document in the specified application type name and application type version. Also takes in timeout interval, which is the maximum of time the system will allow this operation to continue before returning TimeoutException and cancellation-token that the operation is observing.

GetServiceManifestAsync(String, String, String)

Gets the provisioned service manifest document in the specified application type name and application type version.

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

Parameters

applicationTypeName
String

The name of the provisioned application manifest.

applicationTypeVersion
String

The version of the provisioned application manifest.

serviceManifestName
String

The name of the service manifest referenced in the application manifest.

Returns

The provisioned service manifest document.

Exceptions

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

Remarks

The default timeout is one minute for which the system will allow this operation to continue before returning TimeoutException.

Applies to

GetServiceManifestAsync(String, String, String, TimeSpan, CancellationToken)

Gets the provisioned service manifest document in the specified application type name and application type version. Also takes in timeout interval, which is the maximum of time the system will allow this operation to continue before returning TimeoutException and cancellation-token that the operation is observing.

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

Parameters

applicationTypeName
String

The name of the provisioned application manifest.

applicationTypeVersion
String

The version of the provisioned application manifest.

serviceManifestName
String

The name of the service manifest referenced in the application manifest.

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

The provisioned service manifest document

Exceptions

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

If applicationTypeName or applicationTypeVersion or serviceManifestName are null/empty.

Remarks

The default timeout is one minute for which the system will allow this operation to continue before returning TimeoutException.

Applies to