public static Configurer WithDefaultTargetsAndRules(this Configurer @this, string logTableName, string connectionString, string mailFrom, string mailTo, bool async = true, bool disableMailInDevelop = true) { @this.WithArkDefaultTargetsAndRules(logTableName, connectionString, mailFrom, mailTo, _isProduction(), async); if (disableMailInDevelop) { @this.DisableMailRuleWhenInVisualStudio(); } @this.ThrowInternalExceptionsInVisualStudio(); return(@this); }
public static Configurer WithDefaultTargetsAndRulesFromCloudConfiguration(this Configurer @this, string logTableName, string mailFrom, string mailTo, bool async = true, bool disableMailInDevelop = true) { @this.WithDefaultTargetsFromCloudConfiguration(logTableName, mailFrom, mailTo, async); @this.WithDefaultRules(); if (disableMailInDevelop) { @this.DisableMailRuleWhenInVisualStudio(); } @this.ThrowInternalExceptionsInVisualStudio(); return(@this); }
public static Configurer WithDefaultTargetsAndRules(this Configurer @this, string logTableName, string connectionString, string mailFrom, string mailTo, string smtpServer, int smtpPort, string smtpUserName, string smtpPassword, bool useSsl, bool async = true, bool disableMailInDevelop = true) { @this.WithDefaultTargets(logTableName, connectionString, mailFrom, mailTo, smtpServer, smtpPort, smtpUserName, smtpPassword, useSsl, async); @this.WithDefaultRules(); if (disableMailInDevelop) { @this.DisableMailRuleWhenInVisualStudio(); } @this.ThrowInternalExceptionsInVisualStudio(); return(@this); }
public static Configurer WithDefaultTargetsAndRules(this Configurer @this, string logTableName, string connectionString, string mailFrom, string mailTo, string smtpServer, int smtpPort, string smtpUserName, string smtpPassword, bool useSsl, bool async = true, bool disableMailInDevelop = true) { var cs = new SmtpConnectionBuilder(); cs.Server = smtpServer; cs.Port = smtpPort; cs.Username = smtpUserName; cs.Password = smtpPassword; cs.UseSsl = useSsl; @this.WithArkDefaultTargetsAndRules(logTableName, connectionString, mailFrom, mailTo, cs.ConnectionString, _isProduction(), async); if (disableMailInDevelop) { @this.DisableMailRuleWhenInVisualStudio(); } @this.ThrowInternalExceptionsInVisualStudio(); return(@this); }