public SomeDomainB(IMyRequestScope requestScope, IMyHttpLogger myHttpLogger, ISomeDomainA someDomainA) { _someDomainA = someDomainA; _requestScope = requestScope; _myHttpLogger = myHttpLogger; _myHttpLogger.LogMessage("Creating a new instance of SomeDomainB"); }
public void DoWork() { _someDomainA.DoWork(); _myHttpLogger.LogMessage($"SomeDomainB work: {_requestScope.Id}"); }
public SomeDomainA(IMyRequestScope myRequestScope, IMyHttpLogger myHttpLogger) { _myRequestScope = myRequestScope; _myHttpLogger = myHttpLogger; _myHttpLogger.LogMessage("Creating a new instance of SomeDomainA"); }
public MyRequestScope(IMyHttpLogger httpLogger, IHttpRequestContext httpRequestContext) { httpLogger.LogMessage("Creating a new instance of MyRequestScope"); Id = httpRequestContext.Request.Headers["X-SomeKey"]; httpLogger.LogMessage($"Setting: {Id}"); }
public string DoWork() { _myHttpLogger.LogMessage($"SomeDomainA work: {_myRequestScope.Id}"); return("SomeDomainAModule1"); }