Пример #1
0
 /// <summary>
 ///     Sends a disconnect message to the end point.
 /// </summary>
 protected abstract ValueTask <bool> SendDisconnect(MessageWriter writer);
Пример #2
0
 /// <summary>
 /// For times when you want to force the disconnect handler to fire as well as close it.
 /// If you only want to close it, just use Dispose.
 /// </summary>
 public abstract ValueTask Disconnect(string reason, MessageWriter writer = null);