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; }
public GlimpseRequestValidator(IEnumerable<IGlimpseValidator> validators, IGlimpseFactory factory) { Validators = validators; Logger = factory.CreateLogger(); }
public NH(IGlimpseFactory factory) { Logger = factory.CreateLogger(); }
public EF(IGlimpseFactory factory) { Logger = factory.CreateLogger(); Sanitizer = new CommandSanitizer(); }
public Binders(IGlimpseFactory factory) { Logger = factory.CreateLogger(); }
public Execution(IGlimpseFactory factory) { Logger = factory.CreateLogger(); }
public GlimpseRequestValidator(IEnumerable <IGlimpseValidator> validators, IGlimpseFactory factory) { Validators = validators; Logger = factory.CreateLogger(); }
public SQL(IGlimpseFactory factory) { Logger = factory.CreateLogger(); Sanitizer = new CommandSanitizer(); }