/// <summary> /// Extension method for adding the Cachet integration to the the WardenConfiguration. /// </summary> /// <param name="builder">Instance of the Warden configuration builder.</param> /// <param name="configuration">Configuration of CachetIntegration.</param> /// <returns>Instance of fluent builder for the WardenConfiguration.</returns> public static WardenConfiguration.Builder IntegrateWithCachet( this WardenConfiguration.Builder builder, CachetIntegrationConfiguration configuration) { builder.AddIntegration(CachetIntegration.Create(configuration)); return(builder); }
/// <summary> /// Extension method for adding the SendGrid integration to the the WardenConfiguration. /// </summary> /// <param name="builder">Instance of the Warden configuration builder.</param> /// <param name="configuration">Configuration of SendGridIntegration.</param> /// <returns>Instance of fluent builder for the WardenConfiguration.</returns> public static WardenConfiguration.Builder IntegrateWithSendGrid( this WardenConfiguration.Builder builder, SendGridIntegrationConfiguration configuration) { builder.AddIntegration(SendGridIntegration.Create(configuration)); return(builder); }
/// <summary> /// Extension method for adding the MS SQL integration to the the WardenConfiguration. /// </summary> /// <param name="builder">Instance of the Warden configuration builder.</param> /// <param name="configuration">Configuration of MsSqlIntegration.</param> /// <returns>Instance of fluent builder for the WardenConfiguration.</returns> public static WardenConfiguration.Builder IntegrateWithMsSql( this WardenConfiguration.Builder builder, MsSqlIntegrationConfiguration configuration) { builder.AddIntegration(MsSqlIntegration.Create(configuration)); return(builder); }
/// <summary> /// Extension method for adding the Twilio integration to the the WardenConfiguration. /// </summary> /// <param name="builder">Instance of the Warden configuration builder.</param> /// <param name="configuration">Configuration of TwilioIntegration.</param> /// <returns>Instance of fluent builder for the WardenConfiguration.</returns> public static WardenConfiguration.Builder IntegrateWithTwilio( this WardenConfiguration.Builder builder, TwilioIntegrationConfiguration configuration) { builder.AddIntegration(TwilioIntegration.Create(configuration)); return(builder); }
/// <summary> /// Extension method for adding the SendGrid integration to the the WardenConfiguration. /// </summary> /// <param name="builder">Instance of the Warden configuration builder.</param> /// <param name="apiKey">API key of the SendGrid account.</param> /// <param name="sender">Email address of the message sender.</param> /// <param name="configurator">Optional lambda expression for configuring the SendGridIntegration.</param> /// <returns>Instance of fluent builder for the WardenConfiguration.</returns> public static WardenConfiguration.Builder IntegrateWithSendGrid( this WardenConfiguration.Builder builder, string apiKey, string sender, Action <SendGridIntegrationConfiguration.Builder> configurator = null) { builder.AddIntegration(SendGridIntegration.Create(apiKey, sender, configurator)); return(builder); }
/// <summary> /// Extension method for adding the SendGrid integration to the the WardenConfiguration. /// </summary> /// <param name="builder">Instance of the Warden configuration builder.</param> /// <param name="username">Username of the SendGrid account.</param> /// <param name="password">Password of the SendGrid account.</param> /// <param name="sender">Email address of the message sender.</param> /// <param name="configurator">Optional lambda expression for configuring the SendGridIntegration.</param> /// <returns>Instance of fluent builder for the WardenConfiguration.</returns> public static WardenConfiguration.Builder IntegrateWithSendGrid( this WardenConfiguration.Builder builder, string username, string password, string sender, Action <SendGridIntegrationConfiguration.Builder> configurator = null) { builder.AddIntegration(SendGridIntegration.Create(username, password, sender, configurator)); return(builder); }
/// <summary> /// Extension method for adding the Cachet integration to the the WardenConfiguration. /// </summary> /// <param name="builder">Instance of the Warden configuration builder.</param> /// <param name="apiUrl">URL of the Cachet API.</param> /// <param name="username">Username of the Cachet account.</param> /// <param name="password">Password of the Cachet account.</param> /// <param name="configurator">Optional lambda expression for configuring the CachetIntegration.</param> /// <returns>Instance of fluent builder for the WardenConfiguration.</returns> public static WardenConfiguration.Builder IntegrateWithCachet( this WardenConfiguration.Builder builder, string apiUrl, string username, string password, Action <CachetIntegrationConfiguration.Builder> configurator = null) { builder.AddIntegration(CachetIntegration.Create(apiUrl, username, password, configurator)); return(builder); }
/// <summary> /// Extension method for adding the Cachet integration to the the WardenConfiguration. /// </summary> /// <param name="builder">Instance of the Warden configuration builder.</param> /// <param name="apiUrl">URL of the Cachet API.</param> /// <param name="accessToken">Access token of the Cachet account.</param> /// <param name="configurator">Optional lambda expression for configuring the CachetIntegration.</param> /// <returns>Instance of fluent builder for the WardenConfiguration.</returns> public static WardenConfiguration.Builder IntegrateWithCachet( this WardenConfiguration.Builder builder, string apiUrl, string accessToken, Action <CachetIntegrationConfiguration.Builder> configurator = null) { builder.AddIntegration(CachetIntegration.Create(apiUrl, accessToken, configurator)); return(builder); }
/// <summary> /// Extension method for adding the Twilio integration to the the WardenConfiguration. /// </summary> /// <param name="builder">Instance of the Warden configuration builder.</param> /// <param name="accountSid">SID of the Twilio account.</param> /// <param name="authToken">Authentication token of the Twilio account.</param> /// <param name="sender">Phone number of the SMS sender.</param> /// <param name="configurator">Optional lambda expression for configuring the TwilioIntegration.</param> /// <returns>Instance of fluent builder for the WardenConfiguration.</returns> public static WardenConfiguration.Builder IntegrateWithTwilio( this WardenConfiguration.Builder builder, string accountSid, string authToken, string sender, Action <TwilioIntegrationConfiguration.Builder> configurator = null) { builder.AddIntegration(TwilioIntegration.Create(accountSid, authToken, sender, configurator)); return(builder); }
/// <summary> /// Extension method for adding the MS SQL integration to the the WardenConfiguration. /// </summary> /// <param name="builder">Instance of the Warden configuration builder.</param> /// <param name="connectionString">Connection string of the MS SQL server.</param> /// <param name="configurator">Optional lambda expression for configuring the MsSqlIntegration.</param> /// <returns>Instance of fluent builder for the WardenConfiguration.</returns> public static WardenConfiguration.Builder IntegrateWithMsSql( this WardenConfiguration.Builder builder, string connectionString, Action <MsSqlIntegrationConfiguration.Builder> configurator = null) { builder.AddIntegration(MsSqlIntegration.Create(connectionString, configurator)); return(builder); }
/// <summary> /// Extension method for adding the Seq integration to the the WardenConfiguration. /// </summary> /// <param name="builder">Instance of the Warden configuration builder.</param> /// <param name="url">URL of the Seq instance.</param> /// <param name="apiKey">API key of Seq passed inside the custom "X-Seq-ApiKey" header.</param> /// <param name="configurator">Optional lambda expression for configuring the SeqIntegration.</param> public static WardenConfiguration.Builder IntegrateWithSeq( this WardenConfiguration.Builder builder, string url, string apiKey, Action <SeqIntegrationConfiguration.Builder> configurator = null) { builder.AddIntegration(SeqIntegration.Create(url, apiKey, configurator: configurator)); return(builder); }
/// <summary> /// Extension method for adding the Slack integration to the the WardenConfiguration. /// </summary> /// <param name="builder">Instance of the Warden configuration builder.</param> /// <param name="webhookUrl">Full URL of the Slack webhook integration.</param> /// <param name="configurator">Optional lambda expression for configuring the SlackIntegration.</param> public static WardenConfiguration.Builder IntegrateWithSlack( this WardenConfiguration.Builder builder, string webhookUrl, Action <SlackIntegrationConfiguration.Builder> configurator = null) { builder.AddIntegration(SlackIntegration.Create(webhookUrl, configurator)); return(builder); }
public static WardenConfiguration.Builder IntegrateWithSmtp( this WardenConfiguration.Builder builder, string host, int port, bool enableSsl, Action <SmtpIntegrationConfiguration.Builder> configurator = null) { builder.AddIntegration(SmtpIntegration.Create(host, port, enableSsl, configurator)); return(builder); }