Ejemplo n.º 1
0
        public static NetworkServiceImpl Build(EngineServiceInternal engineServiceInternal, Protocol protocol, ComponentAndEventRegistrator componentAndEventRegistrator, SharedEntityRegistry entityRegistry, CommandsCodec commandsCodec)
        {
            NetworkServiceImpl networkService = new NetworkServiceImpl(new ProtocolAdapterImpl(protocol, commandsCodec), new TcpSocketImpl());
            CommandsSender     sender1        = new CommandsSender(engineServiceInternal, networkService, componentAndEventRegistrator, entityRegistry);

            return(networkService);
        }
Ejemplo n.º 2
0
        protected override void Activate()
        {
            ServerTimeServiceImpl service = new ServerTimeServiceImpl();

            ServiceRegistry.Current.RegisterService <ServerTimeService>(service);
            ServiceRegistry.Current.RegisterService <ServerTimeServiceInternal>(service);
            NetworkServiceImpl impl2 = ECSNetworkServerBuilder.Build(EngineServiceInternal, Protocol);

            ServiceRegistry.Current.RegisterService <ProtocolFlowInstancesCache>(new ProtocolFlowInstancesCache());
            ServiceRegistry.Current.RegisterService <NetworkService>(impl2);
        }