private Task DeleteComposeDeploymentAsyncHelper(DeleteComposeDeploymentDescriptionWrapper description, TimeSpan timeout, CancellationToken cancellationToken)
 {
     return(Utility.WrapNativeAsyncInvokeInMTA(
                (callback) => this.DeleteComposeDeploymentBeginWrapper(description, timeout, callback),
                this.DeleteComposeDeploymentEndWrapper,
                cancellationToken,
                "ApplicationManager.DeleteComposeDeploymentAsync"));
 }
            internal Task DeleteComposeDeploymentWrapperAsync(DeleteComposeDeploymentDescriptionWrapper description, TimeSpan timeout, CancellationToken cancellationToken)
            {
                this.fabricClient.ThrowIfDisposed();

                return(this.DeleteComposeDeploymentAsyncHelper(description, timeout, cancellationToken));
            }
 internal Task DeleteComposeDeploymentWrapperAsync(DeleteComposeDeploymentDescriptionWrapper description, TimeSpan timeout)
 {
     return(this.DeleteComposeDeploymentWrapperAsync(description, timeout, CancellationToken.None));
 }
 internal Task DeleteComposeDeploymentWrapperAsync(DeleteComposeDeploymentDescriptionWrapper description)
 {
     return(this.DeleteComposeDeploymentWrapperAsync(description, FabricClient.DefaultTimeout));
 }
 private NativeCommon.IFabricAsyncOperationContext DeleteComposeDeploymentBeginWrapper(DeleteComposeDeploymentDescriptionWrapper description, TimeSpan timeout, NativeCommon.IFabricAsyncOperationCallback callback)
 {
     using (var pin = new PinCollection())
     {
         return(this.internalNativeApplicationClient.BeginDeleteComposeDeployment(
                    description.ToNative(pin),
                    Utility.ToMilliseconds(timeout, "timeout"),
                    callback));
     }
 }