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