/********* ** Public methods *********/ /*** ** Constructor ***/ /// <summary>Construct an instance.</summary> /// <param name="contextProvider">The context config settings.</param> /// <param name="pastebin">The Pastebin API client.</param> public LogParserController(IOptions <ContextConfig> contextProvider, IPastebinClient pastebin) { this.Config = contextProvider.Value; this.Pastebin = pastebin; }
/********* ** Public methods *********/ /*** ** Constructor ***/ /// <summary>Construct an instance.</summary> /// <param name="siteConfig">The context config settings.</param> /// <param name="pastebin">The Pastebin API client.</param> public LogParserController(IOptions <SiteConfig> siteConfig, IPastebinClient pastebin) { this.Config = siteConfig.Value; this.Pastebin = pastebin; }
/********* ** Public methods *********/ /*** ** Constructor ***/ /// <summary>Construct an instance.</summary> /// <param name="siteConfig">The context config settings.</param> /// <param name="pastebin">The Pastebin API client.</param> /// <param name="gzipHelper">The underlying text compression helper.</param> public LogParserController(IOptions <SiteConfig> siteConfig, IPastebinClient pastebin, IGzipHelper gzipHelper) { this.Config = siteConfig.Value; this.Pastebin = pastebin; this.GzipHelper = gzipHelper; }
/********* ** Public methods *********/ /// <summary>Construct an instance.</summary> /// <param name="clientsConfig">The API client settings.</param> /// <param name="pastebin">The underlying Pastebin client.</param> /// <param name="gzipHelper">The underlying text compression helper.</param> public StorageProvider(IOptions <ApiClientsConfig> clientsConfig, IPastebinClient pastebin, IGzipHelper gzipHelper) { this.ClientsConfig = clientsConfig.Value; this.Pastebin = pastebin; this.GzipHelper = gzipHelper; }