Ejemplo n.º 1
0
        private async Task ProcessAsync()
        {
            try
            {
                await IncomingChannels.Completion.ConfigureAwait(false);

                _connection.TryComplete();
            }
            catch (Exception ex)
            {
                _connection.TryTerminate(ex);
                throw;
            }
            finally
            {
                await _connection.Completion.ConfigureAwait(false);
            }
        }
Ejemplo n.º 2
0
 public bool TryTerminate(Exception ex = null)
 {
     return(_transportConnection.TryTerminate(ex));
 }