Beispiel #1
0
		private static void Main(string[] args)
		{
            XmlConfigurator.ConfigureAndWatch(new FileInfo(@"log4net.config"));

			var service = new ActivorServiceProvider
				{
					ServiceName = ConfigurationManager.AppSettings["ServiceName"],
					DisplayName = ConfigurationManager.AppSettings["DisplayName"],
					Description = ConfigurationManager.AppSettings["Description"],
					SourceQueue = ConfigurationManager.AppSettings["SourceQueue"],
					SubscriptionQueue = ConfigurationManager.AppSettings["SubscriptionQueue"],
					ContainerSetup = x => { }
				};

			service.ConfigureService<CollectCompletedWork>(args);
		}
Beispiel #2
0
        private static void Main(string[] args)
        {
            XmlConfigurator.ConfigureAndWatch(new FileInfo(@"log4net.config"));

            var service = new ActivorServiceProvider
            {
                ServiceName       = ConfigurationManager.AppSettings["ServiceName"],
                DisplayName       = ConfigurationManager.AppSettings["DisplayName"],
                Description       = ConfigurationManager.AppSettings["Description"],
                SourceQueue       = ConfigurationManager.AppSettings["SourceQueue"],
                SubscriptionQueue = ConfigurationManager.AppSettings["SubscriptionQueue"],
                ContainerSetup    = x => { }
            };

            service.ConfigureService <CollectCompletedWork>(args);
        }