示例#1
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;
 }
 public CalendarService(IGwcCommonService commonService, IMapper mapper)
 {
     _unitOfWork = commonService.UnitOfWork;
     _mapper     = mapper;
     _log        = commonService.LogManager.GetDefaultDbLoggingService();
 }
示例#3
0
 public UserService(IGwcCommonService commonService)
 {
     _unitOfWork = commonService.UnitOfWork;
 }
 public BillingCalendarService(IGwcCommonService commonService, IMapper mapper)
 {
     _unitOfWork = commonService.UnitOfWork;
     _mapper     = mapper;
 }
示例#5
0
 public SourceService(IGwcCommonService commonService, IMapper mapper)
 {
     _unitOfWork = commonService.UnitOfWork;
     _mapper     = mapper;
 }