public void Run(CancellationToken cancellationToken) { if (cancellationToken == null) { throw new ArgumentNullException(nameof(cancellationToken)); } // tell the consumer to start listening and then pass it the process message action to perform _queueConsumer.Run(MessageReceivedAsync, cancellationToken); }