Esempio n. 1
0
 public static Type GetType(ObsRequestType requestType)
 {
     return(requestDictionary.TryGetValue(requestType, out Type value) ? value : null);
 }
Esempio n. 2
0
 public static object GetInstanceOfType(ObsRequestType requestType)
 {
     return(requestDictionary.TryGetValue(requestType, out Type value) ? Activator.CreateInstance(value) : null);
 }
 public bool WaitingForReplyForType(ObsRequestType requestType)
 {
     return(sentMessageGuids.Values.Any(x => x.OriginalRequestType == requestType));
 }