Example #1
0
 public PrintService(ILifetimeTransient lifetimeTransient, ILifetimeScope lifetimeScope, ILogger <PrintService> logger)
 {
     this.lifetimeTransient = lifetimeTransient;
     this.lifetimeScope     = lifetimeScope;
     logger.LogDebug(lifetimeTransient.GetGuid() + "- lifetimeTransient inservice", null);
     logger.LogDebug(lifetimeScope.GetGuid() + "- lifetimeScope inservice", null);
 }
Example #2
0
 public HomeController(IHttpClientFactory clientHttpFactory, PrintService printService, ILifetimeTransient lifetimeTransient, ILifetimeScope lifetimeScope, ILogger <HomeController> logger)
 {
     _clientHttpFactory     = clientHttpFactory;
     Logger                 = logger;
     this.lifetimeTransient = lifetimeTransient;
     this.lifetimeScope     = lifetimeScope;
     this.printService      = printService;
     Logger.LogDebug(lifetimeTransient.GetGuid() + "- lifetimeTransient", null);
     Logger.LogDebug(lifetimeScope.GetGuid() + "- lifetimeScope", null);
 }