Example #1
0
        /// <summary>
        /// Creates the SparkPost instance
        /// </summary>
        public SparkPost()
        {
            LoaderContext.RegisterSingletonInstance(this);
            var secrets = LoaderContext.EnsureSingletonInstance <SecretsHandler>();

            EndpointUrl = SecretsHandler.GetSecret("SPARKPOST_URL") ?? "https://api.sparkpost.com/api/v1/transmissions";
            APIKey      = SecretsHandler.GetSecret("SPARKPOST_KEY");
        }
Example #2
0
 /// <summary>
 /// Creates the cache module
 /// </summary>
 public Cache()
 {
     LoaderContext.RegisterSingletonInstance(this);
 }
Example #3
0
 /// <summary>
 /// Creates a new SecretsHandler
 /// </summary>
 public SecretsHandler()
 {
     LoaderContext.RegisterSingletonInstance(this);
 }
Example #4
0
 /// <summary>
 /// Creates the signup settings
 /// </summary>
 public EmailSignupSettings()
 {
     LoaderContext.RegisterSingletonInstance(this);
 }
Example #5
0
 /// <summary>
 /// Constructor
 /// </summary>
 public DatabaseInstance()
 {
     LoaderContext.RegisterSingletonInstance(this);
 }
Example #6
0
 /// <summary>
 /// Configure the renderer and sanitizer
 /// </summary>
 public MarkdownRenderer()
 {
     LoaderContext.RegisterSingletonInstance(this);
     m_mdpipeline = new MarkdownPipelineBuilder().Build();
     m_sanitizer  = new HtmlSanitizer();
 }