示例#1
0
        protected TaskQueue(TaskQueueOptions options, ILoggerFactory loggerFactory)
        {
            Options = options;
            if (loggerFactory == null)
            {
                loggerFactory = new LoggerFactory();
                loggerFactory.AddConsole();
            }
            var type = GetType();

            Logger  = loggerFactory.CreateLogger(type);
            EventId = new EventId(0, type.Name);
        }
示例#2
0
 protected TaskQueue(TaskQueueOptions options) : this(options, null)
 {
 }