コード例 #1
0
ファイル: ClientRoom.cs プロジェクト: Hengle/CsharpCode
        public ClientRoom(IClientContextInitilizer clientContextInitializer)
        {
            _logger.InfoFormat("Platform Endianness is little = {0}", BitConverter.IsLittleEndian);

            _contexts = clientContextInitializer.CreateContexts();
            _clientDebugCommandHandler = new ClientDebugCommandHandler(_contexts);
            if (SharedConfig.InSamplingMode || SharedConfig.InLegacySampleingMode)
            {
                _clientSessionStateMachine = new ClientProfileSessionStateMachine(_contexts);
            }
            else
            {
                _clientSessionStateMachine = new ClientSessionStateMachine(_contexts);
            }
            SingletonManager.Get <MyProfilerManager>().Contexts = _contexts;

            InitNetworMessageHandlers();
        }
コード例 #2
0
 public DebugCommandHandler(SessionStateMachine clientSessionStateMachine, Contexts contexts)
 {
     _clientSessionStateMachine = clientSessionStateMachine;
     _contexts = contexts;
     _clientDebugCommandHandler = new ClientDebugCommandHandler(contexts);
 }