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 System.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
System.String

The name of the provisioned application manifest.

applicationTypeVersion
System.String

The version of the provisioned application manifest.

serviceManifestName
System.String

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

Returns

System.Threading.Tasks.Task<System.String>

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 System.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 System.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
System.String

The name of the provisioned application manifest.

applicationTypeVersion
System.String

The version of the provisioned application manifest.

serviceManifestName
System.String

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

timeout
System.TimeSpan

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

cancellationToken
System.Threading.CancellationToken

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

Returns

System.Threading.Tasks.Task<System.String>

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.

System.ArgumentException

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 System.TimeoutException.

Applies to