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);
        }
Beispiel #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.

            server.Open();  //opening connection
            bool result = base.OnStart();

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

            return(result);
        }