示例#1
0
 /// <summary>
 /// Invoked when a new circuit is being discarded.
 /// </summary>
 /// <param name="circuit">The <see cref="Circuit"/>.</param>
 /// <param name="cancellationToken">The <see cref="CancellationToken"/>.</param>
 /// <returns><see cref="Task"/> that represents the asynchronous execution operation.</returns>
 public virtual Task OnCircuitClosedAsync(Circuit circuit, CancellationToken cancellationToken) => Task.CompletedTask;
示例#2
0
 /// <summary>
 /// Invoked when a connection to the client was dropped.
 /// </summary>
 /// <param name="circuit">The <see cref="Circuit"/>.</param>
 /// <param name="cancellationToken">The <see cref="CancellationToken"/>.</param>
 /// <returns><see cref="Task"/> that represents the asynchronous execution operation.</returns>
 public virtual Task OnConnectionDownAsync(Circuit circuit, CancellationToken cancellationToken) => Task.CompletedTask;