Exemplo n.º 1
0
 public static Type GetType(ObsRequestType requestType)
 {
     return(requestDictionary.TryGetValue(requestType, out Type value) ? value : null);
 }
Exemplo 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));
 }