예제 #1
0
 /*********
 ** 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;
 }
예제 #2
0
 /*********
 ** 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;
 }