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