private Task UpgradeComposeDeploymentAsyncHelper(ComposeDeploymentUpgradeDescriptionWrapper upgradeDescription, TimeSpan timeout, CancellationToken cancellationToken) { return(Utility.WrapNativeAsyncInvokeInMTA( (callback) => this.UpgradeComposeDeploymentBeginWrapper(upgradeDescription, timeout, callback), this.UpgradeComposeDeploymentEndWrapper, cancellationToken, "ApplicationManager.UpgradeComposeDeploymentAsync")); }
private NativeCommon.IFabricAsyncOperationContext UpgradeComposeDeploymentBeginWrapper( ComposeDeploymentUpgradeDescriptionWrapper upgradeDescription, TimeSpan timeout, NativeCommon.IFabricAsyncOperationCallback callback) { using (var pin = new PinCollection()) { return(this.internalNativeApplicationClient.BeginUpgradeComposeDeployment( upgradeDescription.ToNative(pin), Utility.ToMilliseconds(timeout, "timeout"), callback)); } }
internal Task UpgradeComposeDeploymentAsync(ComposeDeploymentUpgradeDescriptionWrapper upgradeDescription, TimeSpan timeout, CancellationToken cancellationToken) { this.fabricClient.ThrowIfDisposed(); return(this.UpgradeComposeDeploymentAsyncHelper(upgradeDescription, timeout, cancellationToken)); }
internal Task UpgradeComposeDeploymentAsync(ComposeDeploymentUpgradeDescriptionWrapper upgradeDescription, TimeSpan timeout) { return(this.UpgradeComposeDeploymentAsync(upgradeDescription, timeout, CancellationToken.None)); }
internal Task UpgradeComposeDeploymentAsync(ComposeDeploymentUpgradeDescriptionWrapper upgradeDescription) { return(this.UpgradeComposeDeploymentAsync(upgradeDescription, FabricClient.DefaultTimeout)); }