private Task <NetworkNodeList> GetNetworkNodeListAsyncHelper(NetworkNodeQueryDescription queryDescription, TimeSpan timeout, CancellationToken cancellationToken) { return(Utility.WrapNativeAsyncInvokeInMTA <NetworkNodeList>( (callback) => this.GetNetworkNodeListAsyncBeginWrapper(queryDescription, timeout, callback), this.GetNetworkNodeListAsyncEndWrapper, cancellationToken, "QueryManager.GetNetworkNodeList")); }
/// <summary> /// <para> /// Gets the details for all nodes in the container network. If the nodes 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 <NetworkNodeList> GetNetworkNodeListAsync(NetworkNodeQueryDescription queryDescription, TimeSpan timeout, CancellationToken cancellationToken) { this.fabricClient.ThrowIfDisposed(); if (queryDescription != null) { NetworkNodeQueryDescription.Validate(queryDescription); } return(this.GetNetworkNodeListAsyncHelper(queryDescription, timeout, cancellationToken)); }
private NativeCommon.IFabricAsyncOperationContext GetNetworkNodeListAsyncBeginWrapper(NetworkNodeQueryDescription queryDescription, TimeSpan timeout, NativeCommon.IFabricAsyncOperationCallback callback) { using (var pin = new PinCollection()) { return(this.nativeNetworkManagementClient.BeginGetNetworkNodeList( queryDescription.ToNative(pin), Utility.ToMilliseconds(timeout, "timeout"), callback)); } }
/// <summary> /// <para> /// Gets the details for all nodes in the container network. If the nodes 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 <NetworkNodeList> GetNetworkNodeListAsync(NetworkNodeQueryDescription queryDescription) { return(this.GetNetworkNodeListAsync(queryDescription, FabricClient.DefaultTimeout, CancellationToken.None)); }