public bool TryEventByCodeName(string codeName, out EventSchema eventSchema) { if (_eventNameByCodeName.TryGetValue(codeName, out var name)) { eventSchema = _lazyEventByName[name].Value; return(true); } eventSchema = null; return(false); }
public bool TryEventByName(string name, out EventSchema eventSchema) { if (_lazyEventByName.TryGetValue(name, out var value)) { eventSchema = value.Value; return(true); } eventSchema = null; return(false); }