Ejemplo n.º 1
0
        public void Incoming(BaseCommand command)
        {
            var identifier = _getResponseIdentifier.Get(command.CommandType)(command);

            if (identifier is not null)
            {
                _requests.SetResult(identifier, command);
            }
        }
Ejemplo n.º 2
0
        public void Incoming(BaseCommand command)
        {
            var identifier = GetResponseIdentifier(command);

            if (identifier != null)
            {
                _responses.SetResult(identifier, command);
            }
        }