/// <summary> /// <para> /// Gets the details for all code packages deployed in a container network on a node. If the code packages do not fit in a page, one page of results is returned as well as a continuation token which can be used to get the next page. /// </para> /// </summary> public Task <DeployedNetworkCodePackageList> GetDeployedNetworkCodePackageListAsync(DeployedNetworkCodePackageQueryDescription queryDescription, TimeSpan timeout, CancellationToken cancellationToken) { this.fabricClient.ThrowIfDisposed(); if (queryDescription != null) { DeployedNetworkCodePackageQueryDescription.Validate(queryDescription); } return(this.GetDeployedNetworkCodePackageListAsyncHelper(queryDescription, timeout, cancellationToken)); }
private NativeCommon.IFabricAsyncOperationContext GetDeployedNetworkCodePackageListAsyncBeginWrapper(DeployedNetworkCodePackageQueryDescription queryDescription, TimeSpan timeout, NativeCommon.IFabricAsyncOperationCallback callback) { using (var pin = new PinCollection()) { return(this.nativeNetworkManagementClient.BeginGetDeployedNetworkCodePackageList( queryDescription.ToNative(pin), Utility.ToMilliseconds(timeout, "timeout"), callback)); } }
private Task <DeployedNetworkCodePackageList> GetDeployedNetworkCodePackageListAsyncHelper(DeployedNetworkCodePackageQueryDescription queryDescription, TimeSpan timeout, CancellationToken cancellationToken) { return(Utility.WrapNativeAsyncInvokeInMTA <DeployedNetworkCodePackageList>( (callback) => this.GetDeployedNetworkCodePackageListAsyncBeginWrapper(queryDescription, timeout, callback), this.GetDeployedNetworkCodePackageListAsyncEndWrapper, cancellationToken, "QueryManager.GetDeployedNetworkCodePackageList")); }
/// <summary> /// <para> /// Gets the details for all code packages deployed in a container network on a node. If the code packages do not fit in a page, one page of results is returned as well as a continuation token which can be used to get the next page. /// </para> /// </summary> public Task <DeployedNetworkCodePackageList> GetDeployedNetworkCodePackageListAsync(DeployedNetworkCodePackageQueryDescription queryDescription) { return(this.GetDeployedNetworkCodePackageListAsync(queryDescription, FabricClient.DefaultTimeout, CancellationToken.None)); }