Пример #1
0
 public GwcCommonService(IGwcUnitOfWork unitOfWork, ILogManagerService logManager, IConfiguration configuration)
 {
     Configuration = new WeblogConfigurationDto();
     UnitOfWork    = unitOfWork;
     LogManager    = logManager;
     configuration.GetSection("AppSettings").Bind(Configuration);
 }
Пример #2
0
 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;
 }
Пример #3
0
 public CalendarService(IGwcCommonService commonService, IMapper mapper)
 {
     _unitOfWork = commonService.UnitOfWork;
     _mapper     = mapper;
     _log        = commonService.LogManager.GetDefaultDbLoggingService();
 }
Пример #4
0
 public UserService(IGwcCommonService commonService)
 {
     _unitOfWork = commonService.UnitOfWork;
 }
 public BillingCalendarService(IGwcCommonService commonService, IMapper mapper)
 {
     _unitOfWork = commonService.UnitOfWork;
     _mapper     = mapper;
 }
Пример #6
0
 public SourceService(IGwcCommonService commonService, IMapper mapper)
 {
     _unitOfWork = commonService.UnitOfWork;
     _mapper     = mapper;
 }