protected void UnregisterApplicationType(UnprovisionApplicationTypeDescription description) { var clusterConnection = this.GetClusterConnection(); try { clusterConnection.UnprovisionApplicationAsync( description, this.GetTimeout(), this.GetCancellationToken()).Wait(); this.WriteObject(description.Async ? StringResources.Info_UnregisterApplicationStarted : StringResources.Info_UnregisterApplicationSucceeded); } catch (AggregateException aggregateException) { aggregateException.Handle((ae) => { this.ThrowTerminatingError( ae, Constants.UnregisterApplicationTypeErrorId, clusterConnection); return(true); }); } }
public UnprovisionApplicationRequest(IFabricClient fabricClient, UnprovisionApplicationTypeDescription description, TimeSpan timeout) : base(fabricClient, timeout) { ThrowIf.Null(description, "description"); this.Description = description; this.ConfigureErrorCodes(); }