Example #1
0
            /// <summary>
            ///   <para>Deletes the specific Service Fabric container network.</para>
            /// </summary>
            /// <param name="deleteNetworkDescription">
            ///   <para>The description of the container network to be deleted.</para>
            /// <param name="timeout">
            /// <para>Defines the maximum amount of time the system will allow this operation to continue before returning <see cref="System.TimeoutException" />.</para>
            /// </param>
            /// </param>
            /// <param name="cancellationToken">
            /// <para>The CancellationToken that the operation is observing. It can be used to propagate notification that the operation should be canceled.</para>
            /// </param>
            /// <returns>
            ///   <para>A <see cref="System.Threading.Tasks.Task" /> representing the operation.</para>
            /// </returns>
            public Task DeleteNetworkAsync(DeleteNetworkDescription deleteNetworkDescription, TimeSpan timeout, CancellationToken cancellationToken)
            {
                this.fabricClient.ThrowIfDisposed();
                Requires.Argument <DeleteNetworkDescription>("deleteNetworkDescription", deleteNetworkDescription).NotNull();
                DeleteNetworkDescription.Validate(deleteNetworkDescription);

                return(this.DeleteNetworkAsyncHelper(deleteNetworkDescription, timeout, cancellationToken));
            }