Beispiel #1
0
 public PowerService(IConfiguration configuration, MetricService MetricService, IOctopusEnergyClient client)
 {
     Configuration = configuration;
     _service      = MetricService;
     Client        = client;
     Key           = Configuration.GetValue <string>("OctopusKey");
 }
Beispiel #2
0
 public TwitterService(IConfiguration configuration, MetricService MetricService)
 {
     Configuration = configuration;
     _service      = MetricService;
     TwitterClient = new TwitterClient(configuration.GetValue <string>("TWConsumerKey"), configuration.GetValue <string>("TWConsumerSecret"), configuration.GetValue <string>("TWAccessToken"), configuration.GetValue <string>("TWAccessSecret"));
 }
Beispiel #3
0
 public DevToService(BlogService blogService, MetricService MetricService)
 {
     BlogService = blogService;
     _service    = MetricService;
 }
Beispiel #4
0
 public GithubService(MetricsContext context, IConfiguration configuration, MetricService MetricService)
 {
     Configuration = configuration;
     _context      = context;
     _service      = MetricService;
 }