Exemplo n.º 1
0
 public MySingletonService(ILogger <MySingletonService> logger, TransientService transientService)
 {
     _transientService = transientService;
     _logger           = logger;
     _count            = 0;
     _logger.LogInformation("MySingletonService::ctor - Count Starting At {_count}");
 }
Exemplo n.º 2
0
 public Worker3(ILogger <Worker3> logger, MySingletonService singleMySingletonService, TransientService transientService)
 {
     _transientService         = transientService;
     _singleMySingletonService = singleMySingletonService;
     _logger = logger;
 }