Example #1
0
		public ZipVppInitializer(Configuration.ConfigurationManagerWrapper configFactory, EventBroker broker)
		{
			this.configFactory = configFactory;
			this.broker = broker;
		}
Example #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));
        }
Example #3
0
 static EventBroker()
 {
     Instance = new EventBroker();
 }
Example #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());
 }