public StoresController( [ServiceDependency] IGeoLocationServiceAgent geocodeServiceAgent, [CreateNew] IUnitOfWork unitOfWork ) { this.geocodeServiceAgent = geocodeServiceAgent; this.logWriter = EnterpriseLibraryContainer.Current.GetInstance<LogWriter>(); this.traceManager = new TraceManager(this.logWriter); this.unitOfWork = unitOfWork; }
/// <summary> /// Initializes a new instance of the <see cref="PersonalLocationsController"/> class. /// </summary> public PersonalLocationsController( [CreateNew] IDomainContext domainContext, [ServiceDependency] IGeoLocationServiceAgent geoLocationService ) { this.logWriter = EnterpriseLibraryContainer.Current.GetInstance<LogWriter>(); this.traceManager = new TraceManager(this.logWriter); this.geoLocationService = geoLocationService; this.domainContext = domainContext; }