コード例 #1
0
        public void Incoming(BaseCommand command)
        {
            var identifier = _getResponseIdentifier.Get(command.CommandType)(command);

            if (identifier is not null)
            {
                _requests.SetResult(identifier, command);
            }
        }
コード例 #2
0
        public void Incoming(BaseCommand command)
        {
            var identifier = GetResponseIdentifier(command);

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