private static void ProcessTypesInPlugin(IPlugin plugin) { foreach (var type in plugin.Assembly.GetTypes()) { ServiceLocator.TryAddService(type); EntityMatrix.TryAddRepository(type); DataProviderComposer.TryAddDataProvider(type); } }
private void OnMetaCompiled(object sender, EventArgs e) { var plugins = RafyEnvironment.AllPlugins; foreach (var plugin in plugins) { foreach (var type in plugin.Assembly.GetTypes()) { ServiceLocator.TryAddService(type); EntityMatrix.TryAddRepository(type); DataProviderComposer.TryAddDataProvider(type); } } }