示例#1
0
        public override bool OnStart()
        {
            // Set the maximum number of concurrent connections
            ServicePointManager.DefaultConnectionLimit = 12;

            // For information on handling configuration changes
            // see the MSDN topic at http://go.microsoft.com/fwlink/?LinkId=166357.

            bool result = base.OnStart();

            Trace.TraceInformation("JobWorker has been started");

            JobServer js = new JobServer();

            js.Open();

            PartialJobServer pjs = new PartialJobServer();

            pjs.Open();

            return(result);
        }