public static void StartOnAzure(this IXSocketServerContainer container) { //Configurations var configs = new List <IConfigurationSetting>(); var uriStr = RoleEnvironment.GetConfigurationSettingValue("uri"); var origins = new HashSet <string>(RoleEnvironment.GetConfigurationSettingValue("origin").Split(',').ToList()); var instanceEndpoints = RoleEnvironment.CurrentRoleInstance.InstanceEndpoints.Values.Where(p => p.Protocol.Equals("tcp")); //Create endpoints foreach (var endpoint in instanceEndpoints) { var uri = new Uri(uriStr.Replace("port", endpoint.IPEndpoint.Port.ToString(CultureInfo.InvariantCulture))); configs.Add(new ConfigurationSetting(uri, origins) { Endpoint = endpoint.IPEndpoint }); Composable.GetExport <IXLogger>().Information("Endpoint {@endpoint}", endpoint); } if (!configs.Any()) { Composable.GetExport <IXLogger>().Fatal("Could not find a TCP endpoint, check your configuration"); return; } //Start server with endpoints container.Start(false, configurationSettings: configs); }
public Instance() { wss = Plugin.Framework.Composable.GetExport <IXSocketServerContainer>(); wss.Start(withInterceptors: true, configurationSettings: new List <IConfigurationSetting> { new ConfigurationLoader() }); }
public static void Start() { //Register the WCF-service RouteTable.Routes.Add(new ServiceRoute("ZooService", new WebServiceHostFactory(), typeof(ZooService))); //Start XSockets container = XSockets.Plugin.Framework.Composable.GetExport<IXSocketServerContainer>(); container.Start(); }
public static void Start() { //Register the WCF-service RouteTable.Routes.Add(new ServiceRoute("ZooService", new WebServiceHostFactory(), typeof(ZooService))); //Start XSockets container = XSockets.Plugin.Framework.Composable.GetExport <IXSocketServerContainer>(); container.Start(); }
public static void Start() { container = XSockets.Plugin.Framework.Composable.GetExport <IXSocketServerContainer>(); container.Start(); //// You can also add custom confgurations at startup. //var configs = new List<IConfigurationSetting>(); //for (var i = 83; i <= 85; i++) //{ // configs.Add(new ConfigurationSetting("ws://localhost:" + i)); //} //container.Start(configurationSettings: configs); }
public static void Start() { container = XSockets.Plugin.Framework.Composable.GetExport<IXSocketServerContainer>(); container.Start(); //// You can also add custom confgurations at startup. //var configs = new List<IConfigurationSetting>(); //for (var i = 83; i <= 85; i++) //{ // configs.Add(new ConfigurationSetting("ws://localhost:" + i)); //} //container.Start(configurationSettings: configs); }
public static void Start() { container = XSockets.Plugin.Framework.Composable.GetExport<IXSocketServerContainer>(); container.Start(); }
public static void Start() { container = XSockets.Plugin.Framework.Composable.GetExport <IXSocketServerContainer>(); container.Start(); }
public static void Start() { container = Composable.GetExport<IXSocketServerContainer>(); container.Start(); }
public void Configuration(IAppBuilder app) { container = Composable.GetExport <IXSocketServerContainer>(); container.Start(); }
public void Configuration(IAppBuilder app) { container = Composable.GetExport<IXSocketServerContainer>(); container.Start(); }
public Instance() { wss = Plugin.Framework.Composable.GetExport<IXSocketServerContainer>(); wss.Start(withInterceptors:true, configurationSettings: new List<IConfigurationSetting>{ new ConfigurationLoader()}); }