Beispiel #1
0
 public ValuesController(ILogger <ValuesController> logger, IHttpContextAccessor httpContextAccessor, ISomeService someService)
 {
     _logger = logger;
     _httpContextAccessor    = httpContextAccessor;
     _traceIdentifierService = ServiceLocator.ServiceProvider.GetService <ITraceIdentifierService>();
     _someService            = someService;
 }
Beispiel #2
0
 public SomeService(ILogger <SomeService> logger, IHttpContextAccessor httpContextAccessor)
 {
     _logger = logger;
     _httpContextAccessor    = httpContextAccessor;
     _traceIdentifierService = ServiceLocator.ServiceProvider.GetService <ITraceIdentifierService>();
 }