예제 #1
0
 static Module()
 {
     Configuration = ConfigurationManager.GetSection("glimpse") as GlimpseConfiguration ??
                     new GlimpseConfiguration();
     Responders = new GlimpseResponders();
     Plugins    = Enumerable.Empty <Lazy <IGlimpsePlugin, IGlimpsePluginRequirements> >();
 }
예제 #2
0
        static Module()
        {
            Configuration = ConfigurationManager.GetSection("glimpse") as GlimpseConfiguration ?? new GlimpseConfiguration();
            Responders    = new GlimpseResponders();
            Plugins       = Enumerable.Empty <Lazy <IGlimpsePlugin, IGlimpsePluginRequirements> >();

            DirectoryCatalog = new BlacklistedSafeDirectoryCatalog("bin", Configuration.PluginBlacklist.TypeNames());

            Container = new CompositionContainer(DirectoryCatalog);
        }
예제 #3
0
            public ModuleState(HttpApplication context)
            {
                Responders = new GlimpseResponders();
                Plugins    = new List <Lazy <IGlimpsePlugin, IGlimpsePluginRequirements> >();

                ComposePlugins(context); //Have MEF satisfy our needs

                //Allow plugin's registered for Intialization to setup
                foreach (var plugin in Plugins.Where(plugin => plugin.Metadata.ShouldSetupInInit))
                {
                    plugin.Value.SetupInit(context);
                }
            }
예제 #4
0
파일: Module.cs 프로젝트: mastoj/Glimpse
 public Module()
 {
     Configuration = ConfigurationManager.GetSection("glimpse") as GlimpseConfiguration ?? new GlimpseConfiguration();
     Responders    = new GlimpseResponders();
     Plugins       = new List <Lazy <IGlimpsePlugin, IGlimpsePluginRequirements> >();
 }