public SystemEventLogFactory()
 {
     _container = new UnityContainer();
     UnityConfigurationSection section = (UnityConfigurationSection)ConfigurationManager.GetSection("unity");
     section.Configure(_container, "defaultContainer");
     SystemEventLogService = _container.Resolve<ISystemEventLogService>() as SystemEventLogService;
     ExceptionalLogService = _container.Resolve<IExceptionalLogService>() as ExceptionalLogService;
     ServiceLocatorProvider sp = new ServiceLocatorProvider(GetServiceLocator);
     ServiceLocator.SetLocatorProvider(sp);
 }
        public SystemEventLogFactory()
        {
            _container = new UnityContainer();
            UnityConfigurationSection section = (UnityConfigurationSection)ConfigurationManager.GetSection("unity");

            section.Configure(_container, "defaultContainer");
            SystemEventLogService = _container.Resolve <ISystemEventLogService>() as SystemEventLogService;
            ExceptionalLogService = _container.Resolve <IExceptionalLogService>() as ExceptionalLogService;
            ServiceLocatorProvider sp = new ServiceLocatorProvider(GetServiceLocator);

            ServiceLocator.SetLocatorProvider(sp);
        }