Пример #1
0
 public EmailManager(
     IConfigurationSupplier configurationSupplier,
     DataProtector dataProtector)
 {
     m_ConfigurationSupplier = configurationSupplier;
     m_DataProtector         = dataProtector;
 }
Пример #2
0
 public Executioner(
     IHttpService httpService,
     ILocalStore localStore,
     IConfigurationSupplier configurationSupplier,
     EmailManager emailManager
     )
 {
     m_HttpService           = httpService;
     m_LocalStore            = localStore;
     m_ConfigurationSupplier = configurationSupplier;
     m_EmailManager          = emailManager;
 }
Пример #3
0
        public HttpService(IConfigurationSupplier configurationSupplier)
        {
            m_ConfigurationSupplier = configurationSupplier;

            m_HttpClient = new HttpClient()
            {
                Timeout     = m_TimeOut,
                BaseAddress = new Uri(BaseUrl)
            };

            m_HttpClient.DefaultRequestHeaders
            .Accept
            .Add(new MediaTypeWithQualityHeaderValue("application/json"));
        }