Пример #1
0
        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");
        }
Пример #2
0
 public History(GlimpseSerializer serializer, IGlimpseMetadataStore metadataStore) : base(serializer)
 {
     MetadataStore = metadataStore;
 }
Пример #3
0
 protected JsonHandlerBase(GlimpseSerializer serializer)
 {
     Serializer = serializer;
 }
Пример #4
0
 public JavascriptData(IGlimpseMetadataStore metadataStore, GlimpseSerializer serializer)
 {
     MetadataStore = metadataStore;
     Serializer    = serializer;
 }
Пример #5
0
 public TestUrlHandler(GlimpseSerializer serializer) : base(serializer)
 {
 }
Пример #6
0
 public Clients(GlimpseSerializer serializer, IGlimpseMetadataStore metadataStore) : base(serializer)
 {
     MetadataStore = metadataStore;
 }
Пример #7
0
 public Pager(GlimpseSerializer serializer) : base(serializer)
 {
 }