예제 #1
0
 public MessageConsumerService(ILogger <MessageConsumerService> logger, IOptions <AppOption> appOptions, IServiceProvider serviceProvider, IMessageConsumerFactory messageConsumerFactory)
 {
     _logger                 = logger;
     _serviceProvider        = serviceProvider;
     _messageConsumerFactory = messageConsumerFactory;
     _appOptions             = appOptions.Value;
 }
예제 #2
0
파일: FileLogger.cs 프로젝트: kanthikp/MPS
 public FileLogger(IOptions <AppOption> appOptions)
 {
     _appOptions = appOptions.Value;
 }
예제 #3
0
 public MessagePublisherService(ILogger <MessagePublisherService> logger, IOptions <AppOption> appOptions, IServiceProvider serviceProvider)
 {
     _logger          = logger;
     _serviceProvider = serviceProvider;
     _appOptions      = appOptions.Value;
 }
예제 #4
0
 public SingleTypeMessageConsumer(IOptions <AppOption> appOptions, ILogger <MessageGenerator> logger, IFileLogger fileLogger)
 {
     _appOptions = appOptions.Value;
     _logger     = logger;
     _fileLogger = fileLogger;
 }
예제 #5
0
 public MessageGenerator(IOptions <AppOption> appOptions, IServiceProvider serviceProvider, ILogger <MessageGenerator> logger)
 {
     _appOptions      = appOptions.Value;
     _serviceProvider = serviceProvider;
     _logger          = logger;
 }