private ClientConfiguration() { Scheduler = new Stormancer.Infrastructure.DefaultScheduler(); Logger = NullLogger.Instance; Dispatcher = new DefaultPacketDispatcher(new Lazy <bool>(() => this.AsynchrounousDispatch)); TransportFactory = DefaultTransportFactory; //Transport = new WebSocketClientTransport(NullLogger.Instance); Serializers = new List <ISerializer> { new MsgPackSerializer() }; MaxPeers = 20; Plugins = new List <IClientPlugin>(); Plugins.Add(new RpcClientPlugin()); #if UNITY_EDITOR Plugins.Add(new StormancerEditorPlugin()); #endif AsynchrounousDispatch = true; PingInterval = 5000; try { StormancerActionHandler.Initialize(); } catch (InvalidOperationException ex) { throw new InvalidOperationException("You must create a new ClientConfiguration in the Unity Main Thread.", ex); } }
private ClientConfiguration() { Scheduler = new Stormancer.Infrastructure.DefaultScheduler(); Logger = NullLogger.Instance; Dispatcher = new DefaultPacketDispatcher(new Lazy<bool>(() => this.AsynchrounousDispatch)); TransportFactory = DefaultTransportFactory; //Transport = new WebSocketClientTransport(NullLogger.Instance); Serializers = new List<ISerializer> { new MsgPackSerializer() }; MaxPeers = 20; Plugins = new List<IClientPlugin>(); Plugins.Add(new RpcClientPlugin()); #if UNITY_EDITOR Plugins.Add(new StormancerEditorPlugin()); #endif AsynchrounousDispatch = true; PingInterval = 5000; try { StormancerActionHandler.Initialize(); } catch (InvalidOperationException ex) { throw new InvalidOperationException("You must create a new ClientConfiguration in the Unity Main Thread.", ex); } }
private ClientConfiguration() { Scheduler = new Stormancer.Infrastructure.DefaultScheduler(); Logger = NullLogger.Instance; Dispatcher = new DefaultPacketDispatcher(new Lazy<bool>(() => this.AsynchrounousDispatch)); TransportFactory = DefaultTransportFactory; //Transport = new WebSocketClientTransport(NullLogger.Instance); Serializers = new List<ISerializer> { new MsgPackSerializer() }; MaxPeers = 20; Plugins = new List<IClientPlugin>(); Plugins.Add(new RpcClientPlugin()); #if UNITY_EDITOR Plugins.Add(new StormancerEditorPlugin()); #endif AsynchrounousDispatch = true; PingInterval = 5000; }