public GroupsServiceRobustConnector(IConfigSource config, IHttpServer server, string configName) : base(config, server, configName) { string key = string.Empty; if (configName != String.Empty) { m_ConfigName = configName; } m_log.DebugFormat("[Groups.RobustConnector]: Starting with config name {0}", m_ConfigName); IConfig groupsConfig = config.Configs[m_ConfigName]; if (groupsConfig != null) { key = groupsConfig.GetString("SecretKey", string.Empty); m_log.DebugFormat("[Groups.RobustConnector]: Starting with secret key {0}", key); } else { m_log.WarnFormat("[Groups.RobustConnector]: Unable to find {0} section in configuration", m_ConfigName); } m_GroupsService = new GroupsService(config); IServiceAuth auth = ServiceAuth.Create(config, m_ConfigName); server.AddStreamHandler(new GroupsServicePostHandler(m_GroupsService, auth)); }
public GroupsServiceRobustConnector(IConfigSource config, IHttpServer server, string configName) : base(config, server, configName) { if (configName != String.Empty) m_ConfigName = configName; m_log.DebugFormat("[Groups.RobustConnector]: Starting with config name {0}", m_ConfigName); m_GroupsService = new GroupsService(config); server.AddStreamHandler(new GroupsServicePostHandler(m_GroupsService)); }
public GroupsServiceRobustConnector(IConfigSource config, IHttpServer server, string configName) : base(config, server, configName) { if (configName != String.Empty) { m_ConfigName = configName; } m_log.DebugFormat("[Groups.RobustConnector]: Starting with config name {0}", m_ConfigName); m_GroupsService = new GroupsService(config); server.AddStreamHandler(new GroupsServicePostHandler(m_GroupsService)); }
public GroupsServiceRobustConnector(IConfigSource config, IHttpServer server, string configName) : base(config, server, configName) { string key = string.Empty; if (configName != String.Empty) m_ConfigName = configName; m_log.DebugFormat("[Groups.RobustConnector]: Starting with config name {0}", m_ConfigName); IConfig groupsConfig = config.Configs[m_ConfigName]; if (groupsConfig != null) { key = groupsConfig.GetString("SecretKey", string.Empty); m_log.DebugFormat("[Groups.RobustConnector]: Starting with secret key {0}", key); } // else // m_log.DebugFormat("[Groups.RobustConnector]: Unable to find {0} section in configuration", m_ConfigName); m_GroupsService = new GroupsService(config); server.AddStreamHandler(new GroupsServicePostHandler(m_GroupsService, key)); }
public GroupsServiceRobustConnector(IConfigSource config, IHttpServer server, string configName) : base(config, server, configName) { string key = String.Empty; if (configName != String.Empty) { m_ConfigName = configName; } m_log.DebugFormat("[Groups.RobustConnector]: Starting with config name {0}", m_ConfigName); IConfig groupsConfig = config.Configs[m_ConfigName]; if (groupsConfig != null) { key = groupsConfig.GetString("SecretKey", string.Empty); } m_GroupsService = new GroupsService(config); server.AddStreamHandler(new GroupsServicePostHandler(m_GroupsService, key)); }
public GroupsServicePostHandler(GroupsService service) : base("POST", "/groups") { m_GroupsService = service; }
public GroupsServicePostHandler(GroupsService service, IServiceAuth auth) : base("POST", "/groups", auth) { m_GroupsService = service; }
public GroupsServicePostHandler(GroupsService service, string key) : base("POST", "/groups") { m_GroupsService = service; m_SecretKey = key; }
private void Init(IConfigSource config) { m_GroupsService = new GroupsService(config); m_Scenes = new List <Scene>(); }
private void Init(IConfigSource config) { m_GroupsService = new GroupsService(config); m_Scenes = new List<Scene>(); }