public IotButtonHandler() { var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddEnvironmentVariables(); var config = configurationBuilder.Build(); var thingShadowProvider = new ThingShadowProvider <ChristmasTreeState>(config); this.christmasTreeService = new ChristmasTreeService(thingShadowProvider); }
public ChristmasTreeService(ThingShadowProvider <ChristmasTreeState> thingShadowProvider) { this.thingShadowProvider = thingShadowProvider; }