public void Start(IGuideClient guideClient) { _guideClient = guideClient; _clientTerminal.Connect(IPAddress.Parse(_ipAddress), Port); _clientTerminal.StartListening(); SendData(GuideServiceMessageType.Start, Guid.Empty); }
public void HandleRequest(IGuideClient GuideClient, Socket clientSocket, byte[] buffer) { var messageWrapper = MessageWrapper.Load(buffer, _messageReaders); _guideHandlers[messageWrapper.MessageType](GuideClient, messageWrapper); }