Beispiel #1
0
 private Task <DeployedNetworkList> GetDeployedNetworkListAsyncHelper(DeployedNetworkQueryDescription queryDescription, TimeSpan timeout, CancellationToken cancellationToken)
 {
     return(Utility.WrapNativeAsyncInvokeInMTA <DeployedNetworkList>(
                (callback) => this.GetDeployedNetworkListAsyncBeginWrapper(queryDescription, timeout, callback),
                this.GetDeployedNetworkListAsyncEndWrapper,
                cancellationToken,
                "QueryManager.GetDeployedNetworkList"));
 }
Beispiel #2
0
 /// <summary>
 /// <para>
 /// Gets the details for all container networks deployed on a node. If the networks 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 <DeployedNetworkList> GetDeployedNetworkListAsync(DeployedNetworkQueryDescription queryDescription, TimeSpan timeout, CancellationToken cancellationToken)
 {
     this.fabricClient.ThrowIfDisposed();
     if (queryDescription != null)
     {
         DeployedNetworkQueryDescription.Validate(queryDescription);
     }
     return(this.GetDeployedNetworkListAsyncHelper(queryDescription, timeout, cancellationToken));
 }
Beispiel #3
0
 private NativeCommon.IFabricAsyncOperationContext GetDeployedNetworkListAsyncBeginWrapper(DeployedNetworkQueryDescription queryDescription, TimeSpan timeout, NativeCommon.IFabricAsyncOperationCallback callback)
 {
     using (var pin = new PinCollection())
     {
         return(this.nativeNetworkManagementClient.BeginGetDeployedNetworkList(
                    queryDescription.ToNative(pin),
                    Utility.ToMilliseconds(timeout, "timeout"),
                    callback));
     }
 }
Beispiel #4
0
 /// <summary>
 /// <para>
 /// Gets the details for all container networks deployed on a node. If the networks 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 <DeployedNetworkList> GetDeployedNetworkListAsync(DeployedNetworkQueryDescription queryDescription)
 {
     return(this.GetDeployedNetworkListAsync(queryDescription, FabricClient.DefaultTimeout, CancellationToken.None));
 }