private async Task Handler(Message message, CancellationToken cancellationToken)
        {
            var stateHandler = new ServiceBusMessageStateHandler <T>(_messageReceiver, message, _configuration.MessageSerializer, _deadLetterLimit, _hostConfiguration.DependencyInjection);

            using (var cts = CancellationTokenSource.CreateLinkedTokenSource(_cancellationToken, cancellationToken))
            {
                await _processor.ProcessAsync(stateHandler, cts.Token).ConfigureAwait(false);
            }
        }
        private async Task ClientOnProcessMessageAsync(ProcessMessageEventArgs arg)
        {
            var stateHandler = new ServiceBusMessageStateHandler <TTopic>(arg, _serializer, _deadLetterLimit, _hostConfiguration.DependencyInjection);

            using (var cts = CancellationTokenSource.CreateLinkedTokenSource(_cancellationToken, arg.CancellationToken))
            {
                await _processor.ProcessAsync(stateHandler, cts.Token).ConfigureAwait(false);
            }
        }
 private async Task OnMessageAsync(Message message, CancellationToken cancellationToken)
 {
     var stateHandler = new ServiceBusMessageStateHandler <TTopic>(_client, message, _configuration.MessageSerializer, _deadLetterLimit);
     await _processor.ProcessAsync(stateHandler, cancellationToken).ConfigureAwait(false);
 }