Пример #1
0
        public GlobalEventsInformer Clone(ILoggingService loggingService)
        {
            var retv = new GlobalEventsInformer(loggingService);

            foreach (var shutdown in _shutdowns)
            {
                retv._shutdowns.Add(shutdown);
            }

            return(retv);
        }
Пример #2
0
        public OrlemContainer(ILoggingService loggingService, string dynamicAssemblyName)
        {
            _loggingService      = loggingService;
            _dynamicAssemblyName = dynamicAssemblyName;
            _registratorResolver = new RegistratorResolver(loggingService, dynamicAssemblyName)
            {
                OnShutdownCreated = onShutdownCreated
            };

            _registratorResolver.Register(loggingService);

            _regionManager        = new RegionManager(loggingService);
            _globalEventsInformer = new GlobalEventsInformer(loggingService);
        }