Пример #1
0
 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);
 }
Пример #2
0
 public bool TryEventByName(string name, out EventSchema eventSchema)
 {
     if (_lazyEventByName.TryGetValue(name, out var value))
     {
         eventSchema = value.Value;
         return(true);
     }
     eventSchema = null;
     return(false);
 }