示例#1
0
 public MyOtherCoolService(
     ISingletonDependency singleton,
     ITransientDependency transient,
     IScopedDependency scoped)
 {
     _singleton = singleton;
     _transient = transient;
     _scoped    = scoped;
 }
示例#2
0
 public IfWorker(ILogger <IfWorker> logger,
                 ISingletonDependency singletonDependency,
                 IScopedDependency scopedDependency,
                 ITransientDependency transientDependency)
 {
     _logger = logger;
     _singletonDependency = singletonDependency;
     _scopedDependency    = scopedDependency;
     _transientDependency = transientDependency;
 }
示例#3
0
 public InitCounterWorker(AppSettings appSettings,
                          ILogger <InitCounterWorker> logger,
                          ISingletonDependency singletonDependency,
                          IScopedDependency scopedDependency,
                          ITransientDependency transientDependency)
 {
     _appSettings         = appSettings;
     _logger              = logger;
     _singletonDependency = singletonDependency;
     _scopedDependency    = scopedDependency;
     _transientDependency = transientDependency;
 }
示例#4
0
 public SecondConsumer(IScopedDependency depedency)
 {
     _depedency = depedency;
 }
示例#5
0
 public FirstConsumer(IScopedDependency depedency)
 {
     _depedency = depedency;
 }
 public BrokeredMessageProcessor(ISingletonDependency singletonDependency, IScopedDependency scopedDependency)
 {
     _singletonDependency = singletonDependency;
     _scopedDependency    = scopedDependency;
 }
示例#7
0
 public static void LogInformation(this ILogger <BaseWorker> logger, BaseWorker self, IAppContext ctx, ISingletonDependency sng, IScopedDependency scp, ITransientDependency trn)
 {
     logger.LogInformation($"{self} - executing ...{Environment.NewLine} context: {ctx} | dependencies: [{sng}, {scp}, {trn}]");
 }