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