Esempio n. 1
0
 /// <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();
 }
Esempio n. 2
0
 public static void Main()
 {
     var cloudService = new CloudService();
     System.Threading.Thread.Sleep(System.Threading.Timeout.Infinite);
 }
Esempio n. 3
0
 /// <summary>
 /// Handler for the Stop command.
 /// </summary>
 protected override void OnStop()
 {
     this.cloudService = null;
 }
Esempio n. 4
0
 /// <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();
 }