Esempio n. 1
0
 public TelldusEventService(ITelldusCoreService telldusCoreService, IWebhookService webHookService, ILogger <TelldusEventService> logger)
 {
     this.logger             = logger;
     this.webHookService     = webHookService;
     this.telldusCoreService = telldusCoreService;
 }
Esempio n. 2
0
        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;
 }