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

            bool result = base.OnStart();

            proxy.Open();
            partialServer.Open();
            Trace.TraceInformation("JobWorker has been started");

            return(result);
        }
示例#2
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 https://go.microsoft.com/fwlink/?LinkId=166357.

            bool result = base.OnStart();

            js.Open();
            pjs.Open();
            Trace.TraceInformation("JobWorker has been started");

            return(result);
        }