Ejemplo n.º 1
0
 static Module()
 {
     Configuration = ConfigurationManager.GetSection("glimpse") as GlimpseConfiguration ??
                     new GlimpseConfiguration();
     Responders = new GlimpseResponders();
     Plugins    = Enumerable.Empty <Lazy <IGlimpsePlugin, IGlimpsePluginRequirements> >();
 }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
                }
            }
Ejemplo n.º 4
0
 public Module()
 {
     Configuration = ConfigurationManager.GetSection("glimpse") as GlimpseConfiguration ?? new GlimpseConfiguration();
     Responders    = new GlimpseResponders();
     Plugins       = new List <Lazy <IGlimpsePlugin, IGlimpsePluginRequirements> >();
 }