コード例 #1
0
        private void GoToIdentifyState()
        {
            Ensure.NotNull(_connection, "_connection");
            _connectingPhase = ConnectingPhase.Identification;

            _identifyInfo = new IdentifyInfo(Guid.NewGuid(), _stopwatch.Elapsed);
            var dto = new ClientMessage.IdentifyClient(ClientVersion, _esConnection.ConnectionName);

            _connection.EnqueueSend(new TcpPackage(TcpCommand.IdentifyClient, _identifyInfo.CorrelationId,
                                                   dto.Serialize()));
        }
コード例 #2
0
        private void GoToIdentifyState()
        {
            Ensure.NotNull(_connection, "_connection");
            _connectingPhase = ConnectingPhase.Identification;

            _identifyInfo = new IdentifyInfo(Guid.NewGuid(), _stopwatch.Elapsed);
            var dto = new ClientMessage.IdentifyClient(ClientVersion, _esConnection.ConnectionName);

            if (_settings.VerboseLogging)
            {
                _settings.Log.Debug(
                    $"IdentifyClient; Client Version: {ClientVersion}, ConnectionName: {_esConnection.ConnectionName}, ");
            }

            _connection.EnqueueSend(new TcpPackage(TcpCommand.IdentifyClient, _identifyInfo.CorrelationId,
                                                   dto.Serialize()));
        }