/// <summary> /// Handler for the Application Start event. /// </summary> /// <param name="sender">The parameter is not used.</param> /// <param name="ea">The parameter is not used.</param> public void Application_Start(object sender, EventArgs ea) { // - // Start the cloud service. // - Global.cloudService = new CloudService(); }
public static void Main() { var cloudService = new CloudService(); System.Threading.Thread.Sleep(System.Threading.Timeout.Infinite); }
/// <summary> /// Handler for the Stop command. /// </summary> protected override void OnStop() { this.cloudService = null; }
/// <summary> /// Handler for the Start command. /// </summary> /// <param name="args">Arguments for service Start command.</param> protected override void OnStart(string[] args) { this.cloudService = new CloudService(); }