public void Incoming(BaseCommand command) { var identifier = _getResponseIdentifier.Get(command.CommandType)(command); if (identifier is not null) { _requests.SetResult(identifier, command); } }
public void Incoming(BaseCommand command) { var identifier = GetResponseIdentifier(command); if (identifier != null) { _responses.SetResult(identifier, command); } }