예제 #1
0
 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"));
 }
예제 #2
0
 /// <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));
 }
예제 #3
0
 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));
     }
 }
예제 #4
0
 /// <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));
 }