static Module() { RunningVersion = Assembly.GetExecutingAssembly().GetName().Version.ToString(2); Configuration = ConfigurationManager.GetSection("glimpse") as GlimpseConfiguration ?? new GlimpseConfiguration(); Factory = new GlimpseFactory(Configuration); Logger = Factory.CreateLogger(); Logger.Info(Configuration); RequestValidator = new GlimpseRequestValidator(Enumerable.Empty<IGlimpseValidator>(), Factory); Sanitizer = new CSharpSanitizer(); Serializer = new GlimpseSerializer(Factory); Handlers = Enumerable.Empty<IGlimpseHandler>(); Services = Enumerable.Empty<IGlimpseService>(); Plugins = Enumerable.Empty<Lazy<IGlimpsePlugin, IGlimpsePluginRequirements>>(); Logger.Info("Glimpse Module constructed"); }
static Module() { Configuration = ConfigurationManager.GetSection("glimpse") as GlimpseConfiguration ?? new GlimpseConfiguration(); Factory = new GlimpseFactory(Configuration); Logger = Factory.CreateLogger(); Logger.Info(Configuration); RequestValidator = new GlimpseRequestValidator(Configuration, Enumerable.Empty<IGlimpseValidator>(), Factory); Sanitizer = new CSharpSanitizer(); Serializer = new GlimpseSerializer(Factory); Handlers = Enumerable.Empty<IGlimpseHandler>(); Plugins = Enumerable.Empty<Lazy<IGlimpsePlugin, IGlimpsePluginRequirements>>(); Logger.Info("Glimpse Module constructed"); }