public GwcCommonService(IGwcUnitOfWork unitOfWork, ILogManagerService logManager, IConfiguration configuration) { Configuration = new WeblogConfigurationDto(); UnitOfWork = unitOfWork; LogManager = logManager; configuration.GetSection("AppSettings").Bind(Configuration); }
public ContentfulService(IGwcCommonService commonService, IMapper mapper) { _unitOfWork = commonService.UnitOfWork; _mapper = mapper; _log = commonService.LogManager.GetDefaultDbLoggingService(); _client = new HttpClient { BaseAddress = new System.Uri("https://cdn.contentful.com/spaces/fgj5iptu3uwg/environments/master/") }; _client.DefaultRequestHeaders.Add("Accept", "application/json"); formatters = new MediaTypeFormatterCollection(); formatters.JsonFormatter.SupportedMediaTypes.Add(new MediaTypeHeaderValue("application/vnd.contentful.delivery.v1+json")); configuration = commonService.Configuration; }
public CalendarService(IGwcCommonService commonService, IMapper mapper) { _unitOfWork = commonService.UnitOfWork; _mapper = mapper; _log = commonService.LogManager.GetDefaultDbLoggingService(); }
public UserService(IGwcCommonService commonService) { _unitOfWork = commonService.UnitOfWork; }
public BillingCalendarService(IGwcCommonService commonService, IMapper mapper) { _unitOfWork = commonService.UnitOfWork; _mapper = mapper; }
public SourceService(IGwcCommonService commonService, IMapper mapper) { _unitOfWork = commonService.UnitOfWork; _mapper = mapper; }