// Public Methods public static void RegisterDeviceEventConfigurations() { IEnumerable <Type> deviceEventClasses = ReflexUtil.GetKnownTypesFromAllCurrentDomainAssemblies(typeof(DeviceEvent)); foreach (Type evtClass in deviceEventClasses) { var method = evtClass.GetMethod("RegisterDeviceEventConfigurations"); method.Invoke(null, null); } deviceEventClasses = ReflexUtil.GetKnownTypesOnAssembly(typeof(DeviceEvent), "Launchpad.App.Common.dll"); foreach (Type evtClass in deviceEventClasses) { var method = evtClass.GetMethod("RegisterDeviceEventConfigurations"); method.Invoke(null, null); } }
public static Type[] GetEventTypeReferencesFromAllAssemblies() { IEnumerable <Type> types = ReflexUtil.GetKnownTypesFromAllCurrentDomainAssemblies(typeof(DeviceEvent)); return(types.ToArray <Type>()); }