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); }
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); }