Пример #1
0
 public void Setup() {
     secrets = Secrets.LoadFromFile("aws.secrets");
     var config = new SimolConfig {
         AutoCreateDomains = true,
         Cache = null,
         ReadConsistency = ConsistencyBehavior.Immediate
     };
     simolClient = new SimolClient(secrets.AwsAccessKeyId, secrets.AwsSecretAccessKey, config);
 }
Пример #2
0
        public MailStore(Secrets secrets) {
            ServicePointManager.ServerCertificateValidationCallback = (sender, certificate, chain, errors) => true;

            var config = new SimolConfig {
                AutoCreateDomains = true,
                Cache = null,
                ReadConsistency = ConsistencyBehavior.Immediate
            };
            simolClient = new SimolClient(secrets.Username, secrets.Password, config);
        }