public void Configure(IDependencyContainer container) {
			container.Register<IEventPublisher, EventPublisher>();
			container.Register<IEventListener, AsyncTestEventListener>();
			AConf aSyncConf = new AConf();
			aSyncConf.EndPoint = () => {
				return "async/execute";
			};
			aSyncConf.SiteUrl = () => {
				return ConfigurationManager.AppSettings["SiteURL"];
			};
			container.RegisterSingleton<IAsyncConfiguration>(aSyncConf);
			container.Register<IAsyncTask, AsyncWebTask>();
		}
Ejemplo n.º 2
0
        public void Configure(IDependencyContainer container)
        {
            container.Register <IEventPublisher, EventPublisher>();
            container.Register <IEventListener, AsyncTestEventListener>();
            AConf aSyncConf = new AConf();

            aSyncConf.EndPoint = () => {
                return("async/execute");
            };
            aSyncConf.SiteUrl = () => {
                return(ConfigurationManager.AppSettings["SiteURL"]);
            };
            container.RegisterSingleton <IAsyncConfiguration>(aSyncConf);
            container.Register <IAsyncTask, AsyncWebTask>();
        }