protected override async Task StartAsyncCore(CancellationToken cancellationToken)
        {
            cancellationToken.ThrowIfCancellationRequested();

            _receiver = CreateReceiver(_config, _channelOrKey);
            await _receiver.OnMessageAsync(ProcessMessageAsync);
        }
        protected override async Task StopAsyncCore(CancellationToken cancellationToken)
        {
            cancellationToken.ThrowIfCancellationRequested();
            await _receiver.CloseAsync();

            _receiver = null;
        }
        protected override async Task StartAsyncCore(CancellationToken cancellationToken)
        {
            cancellationToken.ThrowIfCancellationRequested();

            _receiver = CreateReceiver(_config, _channelOrKey);
            await _receiver.OnMessageAsync(ProcessMessageAsync);
        }
 protected override void OnDisposing()
 {
     if (_receiver != null)
     {
         _receiver.Abort();
         _receiver = null;
     }
 }
 protected override void OnDisposing()
 {
     if (_receiver != null)
     {
         _receiver.Abort();
         _receiver = null;
     }
 }
 protected override async Task StopAsyncCore(CancellationToken cancellationToken)
 {
     cancellationToken.ThrowIfCancellationRequested();
     await _receiver.CloseAsync();
     _receiver = null;
 }