Ejemplo n.º 1
0
 /// <summary>
 /// <para>
 /// Gets the details for all container networks an application is a member of. 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 <ApplicationNetworkList> GetApplicationNetworkListAsync(ApplicationNetworkQueryDescription queryDescription, TimeSpan timeout, CancellationToken cancellationToken)
 {
     this.fabricClient.ThrowIfDisposed();
     if (queryDescription != null)
     {
         ApplicationNetworkQueryDescription.Validate(queryDescription);
     }
     return(this.GetApplicationNetworkListAsyncHelper(queryDescription, timeout, cancellationToken));
 }
Ejemplo n.º 2
0
 private NativeCommon.IFabricAsyncOperationContext GetApplicationNetworkListAsyncBeginWrapper(ApplicationNetworkQueryDescription queryDescription, TimeSpan timeout, NativeCommon.IFabricAsyncOperationCallback callback)
 {
     using (var pin = new PinCollection())
     {
         return(this.nativeNetworkManagementClient.BeginGetApplicationNetworkList(
                    queryDescription.ToNative(pin),
                    Utility.ToMilliseconds(timeout, "timeout"),
                    callback));
     }
 }
Ejemplo n.º 3
0
 private Task <ApplicationNetworkList> GetApplicationNetworkListAsyncHelper(ApplicationNetworkQueryDescription queryDescription, TimeSpan timeout, CancellationToken cancellationToken)
 {
     return(Utility.WrapNativeAsyncInvokeInMTA <ApplicationNetworkList>(
                (callback) => this.GetApplicationNetworkListAsyncBeginWrapper(queryDescription, timeout, callback),
                this.GetApplicationNetworkListAsyncEndWrapper,
                cancellationToken,
                "QueryManager.GetApplicationNetworkList"));
 }
Ejemplo n.º 4
0
 /// <summary>
 /// <para>
 /// Gets the details for all container networks an application is a member of. 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 <ApplicationNetworkList> GetApplicationNetworkListAsync(ApplicationNetworkQueryDescription queryDescription)
 {
     return(this.GetApplicationNetworkListAsync(queryDescription, FabricClient.DefaultTimeout, CancellationToken.None));
 }