Example #1
0
 private static void ProcessTypesInPlugin(IPlugin plugin)
 {
     foreach (var type in plugin.Assembly.GetTypes())
     {
         ServiceLocator.TryAddService(type);
         EntityMatrix.TryAddRepository(type);
         DataProviderComposer.TryAddDataProvider(type);
     }
 }
Example #2
0
        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);
                }
            }
        }