示例#1
0
文件: NH.cs 项目: tzarger/Glimpse
 public NH(IGlimpseFactory factory)
 {
     _logger = factory.CreateLogger();
     _nhibernateInfoProvider   = new NHibernateInfoProvider();
     _profileDbDriverFactory   = new GlimpseProfileDbDriverFactory();
     _profileDbDriverActivator = new GlimpseProfileDbDriverActivator();
 }
示例#2
0
文件: NH.cs 项目: remcoros/Glimpse
 public NH(IGlimpseFactory factory)
 {
     _logger = factory.CreateLogger();
     _nhibernateInfoProvider = new NHibernateInfoProvider();
     _profileDbDriverFactory = new GlimpseProfileDbDriverFactory();
     _profileDbDriverActivator = new GlimpseProfileDbDriverActivator();
 }
        public GlimpseSerializer(IGlimpseFactory factory)
        {
            Logger = factory.CreateLogger();

            Settings = new JsonSerializerSettings { ContractResolver = new GlimpseContractResolver() };
            Settings.Error += (obj, args) =>
            {
                Logger.Warn("Serializer error", args.ErrorContext.Error);
                args.ErrorContext.Handled = true;
            };

            Settings.Converters.Add(new JavaScriptDateTimeConverter());

            DefaultFormatting = Formatting.None;
        }
示例#4
0
        public GlimpseSerializer(IGlimpseFactory factory)
        {
            Logger = factory.CreateLogger();

            Settings = new JsonSerializerSettings {
                ContractResolver = new GlimpseContractResolver()
            };
            Settings.Error += (obj, args) =>
            {
                Logger.Warn("Serializer error", args.ErrorContext.Error);
                args.ErrorContext.Handled = true;
            };

            Settings.Converters.Add(new JavaScriptDateTimeConverter());

            DefaultFormatting = Formatting.None;
        }
示例#5
0
 public GlimpseRequestValidator(IEnumerable<IGlimpseValidator> validators, IGlimpseFactory factory)
 {
     Validators = validators;
     Logger = factory.CreateLogger();
 }
示例#6
0
文件: NH.cs 项目: nagor/Glimpse
 public NH(IGlimpseFactory factory)
 {
     Logger = factory.CreateLogger();
 }
示例#7
0
文件: EF.cs 项目: sperling/Glimpse
 public EF(IGlimpseFactory factory)
 {
     Logger = factory.CreateLogger();
     Sanitizer = new CommandSanitizer();
 }
示例#8
0
 public Binders(IGlimpseFactory factory)
 {
     Logger = factory.CreateLogger();
 }
示例#9
0
 public Binders(IGlimpseFactory factory)
 {
     Logger = factory.CreateLogger();
 }
示例#10
0
 public Execution(IGlimpseFactory factory)
 {
     Logger = factory.CreateLogger();
 }
示例#11
0
 public Execution(IGlimpseFactory factory)
 {
     Logger = factory.CreateLogger();
 }
示例#12
0
 public GlimpseRequestValidator(IEnumerable <IGlimpseValidator> validators, IGlimpseFactory factory)
 {
     Validators = validators;
     Logger     = factory.CreateLogger();
 }
示例#13
0
文件: NH.cs 项目: nagor/Glimpse
 public NH(IGlimpseFactory factory)
 {
     Logger = factory.CreateLogger();
 }
示例#14
0
 public SQL(IGlimpseFactory factory)
 {
     Logger    = factory.CreateLogger();
     Sanitizer = new CommandSanitizer();
 }