public override bool OnStart() { Trace.TraceInformation("SalesOrder.Cloud.Server is starting..."); SalesOrderActorSystem.Start(); ServicePointManager.DefaultConnectionLimit = 12; return(base.OnStart()); }
public override void OnStop() { Trace.TraceInformation("SalesOrder.Cloud.Server is stopping..."); stop.Set(); // stopped.WaitOne(); SalesOrderActorSystem.Stop(); base.OnStop(); }