예제 #1
0
        public static IEnumerable <LoadedTabPlugin> LoadTabPlugins(ControllerContext controllerContext)
        {
            var plugins       = GetTabPlugins(controllerContext).ToList();
            var loadedPlugins = new List <LoadedTabPlugin>();

            foreach (var plugin in plugins)
            {
                var context = new TabLoadContext(controllerContext);
                plugin.OnLoad(context);
                loadedPlugins.Add(new LoadedTabPlugin(plugin, context));
            }

            return(loadedPlugins);
        }
예제 #2
0
        public static IEnumerable<LoadedTabPlugin> LoadTabPlugins(ControllerContext controllerContext)
        {
            var plugins = GetTabPlugins(controllerContext).ToList();
            var loadedPlugins = new List<LoadedTabPlugin>();

            foreach (var plugin in plugins)
            {
                var context = new TabLoadContext(controllerContext);
                plugin.OnLoad(context);
                loadedPlugins.Add(new LoadedTabPlugin(plugin, context));
            }

            return loadedPlugins;
        }
예제 #3
0
 public LoadedTabPlugin(ITabPlugin tabPlugin, TabLoadContext loadContext)
 {
     TabPlugin = tabPlugin;
     Context   = loadContext;
 }
예제 #4
0
 public abstract void OnLoad(TabLoadContext context);
예제 #5
0
 public LoadedTabPlugin(ITabPlugin tabPlugin, TabLoadContext loadContext)
 {
     TabPlugin = tabPlugin;
     Context = loadContext;
 }