Пример #1
0
 /// <summary>
 /// Configuration constructor
 /// </summary>
 /// <param name="serviceId"></param>
 /// <param name="configuration"></param>
 public Config(string serviceId, IConfigurationRoot configuration) :
     base(configuration)
 {
     _auth     = new AuthConfig(configuration, serviceId);
     _hub      = new IoTHubConfig(configuration, serviceId);
     _cors     = new CorsConfig(configuration);
     _eh       = new EventHubConfig(configuration, serviceId);
     _sessions = new SessionServicesConfig(configuration);
 }
Пример #2
0
 /// <summary>
 /// Configuration constructor
 /// </summary>
 /// <param name="configuration"></param>
 public Config(IConfiguration configuration) :
     base(configuration)
 {
     _host     = new WebHostConfig(configuration);
     _hub      = new IoTHubConfig(configuration);
     _cors     = new CorsConfig(configuration);
     _sessions = new SessionServicesConfig(configuration);
     _api      = new RegistryConfig(configuration);
     _fh       = new ForwardedHeadersConfig(configuration);
 }
Пример #3
0
 /// <summary>
 /// Configuration constructor
 /// </summary>
 /// <param name="configuration"></param>
 public Config(IConfiguration configuration) :
     base(configuration)
 {
     _auth     = new AuthConfig(configuration);
     _host     = new HostConfig(configuration);
     _hub      = new IoTHubConfig(configuration);
     _cors     = new CorsConfig(configuration);
     _sessions = new SessionServicesConfig(configuration);
     _api      = new RegistryConfig(configuration);
 }
Пример #4
0
 /// <summary>
 /// Configuration constructor
 /// </summary>
 /// <param name="configuration"></param>
 public Config(IConfigurationRoot configuration) :
     base(configuration)
 {
     _auth     = new AuthConfig(configuration);
     _hub      = new IoTHubConfig(configuration);
     _cors     = new CorsConfig(configuration);
     _eh       = new EventHubConfig(configuration);
     _sessions = new SessionServicesConfig(configuration);
     _api      = new ApiConfig(configuration);
     _ai       = new ApplicationInsightsConfig(configuration);
 }