示例#1
0
        public override bool OnStart()
        {
            Trace.TraceInformation("SalesOrder.Cloud.Server is starting...");

            SalesOrderActorSystem.Start();

            ServicePointManager.DefaultConnectionLimit = 12;

            return(base.OnStart());
        }
示例#2
0
        public override void OnStop()
        {
            Trace.TraceInformation("SalesOrder.Cloud.Server is stopping...");

            stop.Set();
            // stopped.WaitOne();

            SalesOrderActorSystem.Stop();

            base.OnStop();
        }