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