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(); }
public DebugCommandHandler(SessionStateMachine clientSessionStateMachine, Contexts contexts) { _clientSessionStateMachine = clientSessionStateMachine; _contexts = contexts; _clientDebugCommandHandler = new ClientDebugCommandHandler(contexts); }