Ejemplo n.º 1
0
        /// <summary>
        /// Gets the <see cref="HybridConnectionRuntimeInformation"/> for this HybridConnection entity using the provided CancellationToken.
        /// </summary>
        public Task <HybridConnectionRuntimeInformation> GetRuntimeInformationAsync(CancellationToken cancellationToken)
        {
            if (this.TokenProvider == null)
            {
                throw RelayEventSource.Log.ThrowingException(new InvalidOperationException(SR.TokenProviderRequired), this);
            }

            return(ManagementOperations.GetAsync <HybridConnectionRuntimeInformation>(this.Address, this.TokenProvider, cancellationToken));
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Gets the <see cref="HybridConnectionRuntimeInformation"/> for this HybridConnection entity using the provided CancellationToken.
 /// </summary>
 /// <param name="cancellationToken">A cancellation token to observe.</param>
 public Task <HybridConnectionRuntimeInformation> GetRuntimeInformationAsync(CancellationToken cancellationToken)
 {
     return(ManagementOperations.GetAsync <HybridConnectionRuntimeInformation>(this.Address, this.TokenProvider, cancellationToken));
 }