Example #1
0
 public MessageWorker(
     MessageWorkerOptions options,
     ILogger <MessageWorker <TInputMessage> > logger,
     //IMessageKeeper messageKeeper,
     IServiceProvider services) : base(options, logger, services)
 {
 }
Example #2
0
        public MessageWorkerBase(
            MessageWorkerOptions options,
            ILogger <MessageWorkerBase> logger,
            //IMessageKeeper messageKeeper,
            IServiceProvider services)
        {
            this._options = options;
            this._logger  = logger;
            //this._messageKeeper = messageKeeper;
            this._services = services;

            if (this._logger == null)
            {
                this._logger = new Microsoft.Extensions.Logging.Abstractions.NullLogger <MessageWorkerBase>();
            }
        }