Beispiel #1
0
        public WrapDbDriver(IGlimpseLogger logger, INHibernateInfoProvider nhibernateInfoProvider, IGlimpseProfileDbDriverFactory profileDbDriverFactory, IGlimpseProfileDbDriverActivator profileDbDriverActivator)
        {
            if (logger == null)
            {
                throw new ArgumentNullException("logger");
            }

            if (nhibernateInfoProvider == null)
            {
                throw new ArgumentNullException("nhibernateInfoProvider");
            }

            if (profileDbDriverFactory == null)
            {
                throw new ArgumentNullException("profileDbDriverFactory");
            }

            if (profileDbDriverActivator == null)
            {
                throw new ArgumentNullException("profileDbDriverActivator");
            }

            _logger = logger;
            _nhibernateInfoProvider   = nhibernateInfoProvider;
            _profileDbDriverFactory   = profileDbDriverFactory;
            _profileDbDriverActivator = profileDbDriverActivator;
        }
Beispiel #2
0
 public NH(IGlimpseFactory factory)
 {
     _logger = factory.CreateLogger();
     _nhibernateInfoProvider = new NHibernateInfoProvider();
     _profileDbDriverFactory = new GlimpseProfileDbDriverFactory();
     _profileDbDriverActivator = new GlimpseProfileDbDriverActivator();
 }
Beispiel #3
0
 public NH(IGlimpseFactory factory)
 {
     _logger = factory.CreateLogger();
     _nhibernateInfoProvider   = new NHibernateInfoProvider();
     _profileDbDriverFactory   = new GlimpseProfileDbDriverFactory();
     _profileDbDriverActivator = new GlimpseProfileDbDriverActivator();
 }