public TelldusEventService(ITelldusCoreService telldusCoreService, IWebhookService webHookService, ILogger <TelldusEventService> logger) { this.logger = logger; this.webHookService = webHookService; this.telldusCoreService = telldusCoreService; }
public void Configure(IApplicationBuilder app, IWebHostEnvironment env, ITelldusEventService telldusEventService, ITelldusCoreService telldusCoreService) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } telldusCoreService.InitializeInThread(3000); telldusEventService.Initialize(); app.UseRouting(); app.UseEndpoints(endpoints => { endpoints.MapControllerRoute(name: "default", pattern: "{controller=Home}/{action=Index}/{id?}"); }); }
public CommandController(ITelldusCoreService telldusCoreService) { this.telldusCoreService = telldusCoreService; }
public DevicesController(ITelldusCoreService telldusCoreService) { this.telldusCoreService = telldusCoreService; }