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); }
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); }