/// <summary>
 ///     Close()
 /// </summary>
 public async Task Close()
 {
     if (_channel == null)
     {
         return;
     }
     ConnectedCall = null;
     await _channel.CloseAsync();
 }
Exemple #2
0
        /// <summary>
        ///     Wait for all messages to be sent and close the connection
        /// </summary>
        /// <returns>Async task</returns>
        public async Task CloseAsync()
        {
            await _channel.CloseAsync();

            _channel = null;
        }