static void Main(string[] args)
        {
            if (args.Length > 0)
            {
                MConfiguration.SetConfigurationFileName(args[0]);
            }
            else
            {
                MConfiguration.SetConfigurationFileName("Configuration.config");
            }
            PSCalculateEmails service = new PSCalculateEmails();

            service.OnDebug();
            Console.WriteLine("Host started");
            Console.Read();
        }
Пример #2
0
 protected override void OnStart(string[] args)
 {
     MConfiguration.SetConfigurationFileName("Configuration.config");
     StartServer();
 }