static void Main(string[] args) { Console.SetWindowSize(Console.LargestWindowWidth - 30, Console.LargestWindowHeight - 30); Console.Title = ".NET StockTrader Business Services Host"; MyHost myHost = new MyHost(); myHost.startUp(); }
public override bool OnStart() { // Set the maximum number of concurrent connections ServicePointManager.DefaultConnectionLimit = 64; //Wire up our key event handlers, to ensure proper lifecycle management. RoleEnvironment.Stopping += RoleInstanceShutdown; RoleEnvironment.Changing += RoleEnvironmentChanging; // For information on handling configuration changes // see the MSDN topic at http://go.microsoft.com/fwlink/?LinkId=166357. myHost = new MyHost(); myHost.startUp(); return base.OnStart(); }