예제 #1
0
        public IotButtonHandler()
        {
            var configurationBuilder = new ConfigurationBuilder();

            configurationBuilder.AddEnvironmentVariables();
            var config = configurationBuilder.Build();

            var thingShadowProvider = new ThingShadowProvider <ChristmasTreeState>(config);

            this.christmasTreeService = new ChristmasTreeService(thingShadowProvider);
        }
예제 #2
0
 public ChristmasTreeService(ThingShadowProvider <ChristmasTreeState> thingShadowProvider)
 {
     this.thingShadowProvider = thingShadowProvider;
 }