Azure / azure-iot-remote-monitoring

Azure IoT Remote Monitoring preconfigured solution
Other
249 stars 221 forks source link

ConfigurationProvider should be SingleInstance in Web project? #433

Closed lairship closed 3 years ago

lairship commented 7 years ago

When I enable log, I found many many log such as:

Getting "device.StorageConnectionString" from ServiceRuntime: FAIL. Getting "device.StorageConnectionString" from ConfigurationManager: PASS.

So, I debug Web project, then found below code: builder.RegisterType<ConfigurationProvider>().As<IConfigurationProvider>(); Bug, in EventProcessor WebJob and Simulator Webjob, Register ConfigurationProvider as: builder.RegisterType<ConfigurationProvider>().As<IConfigurationProvider>().SingleInstance(); I think that it is missed .SingleInstance in Web project

ankitscribbles commented 3 years ago

Note: As of December 10th 2020, Remote Monitoring solution accelerator is no longer supported. All supporting repositories have been archived.