예제 #1
0
		public ZipVppInitializer(Configuration.ConfigurationManagerWrapper configFactory, EventBroker broker)
		{
			this.configFactory = configFactory;
			this.broker = broker;
		}
예제 #2
0
        /// <summary>Tries to determine runtime parameters from the given configuration.</summary>
        /// <param name="config">The configuration to use.</param>
        /// <param name="sectionGroup">The configuration section to retrieve configuration from</param>
        /// <param name="broker">Web ap event provider</param>
        public ContentEngine(System.Configuration.Configuration config, string sectionGroup, IServiceContainer container, EventBroker broker, ContainerConfigurer configurer)
        {
            if (config == null)
            {
                throw new ArgumentNullException("config");
            }
            if (string.IsNullOrEmpty(sectionGroup))
            {
                throw new ArgumentException("Must be non-empty and match a section group in the configuration file.", "sectionGroup");
            }

            this.container = container;
            configurer.Configure(this, broker, new ConfigurationReadingWrapper(config, sectionGroup));
        }
예제 #3
0
파일: EventBroker.cs 프로젝트: ztaff/n2cms
 static EventBroker()
 {
     Instance = new EventBroker();
 }
예제 #4
0
 /// <summary>Sets the current container to the given container.</summary>
 /// <param name="container">An previously prepared service container.</param>
 /// <param name="broker"></param>
 public ContentEngine(IServiceContainer container, EventBroker broker, ContainerConfigurer configurer)
 {
     this.container = container;
     configurer.Configure(this, broker, new ConfigurationManagerWrapper());
 }