コード例 #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;
 }