/// <summary> /// The main entry point for the application. /// </summary> static void Main() { var services = new InteractiveServiceBase[] { new IntegreatService() }; #if DEBUG ServiceRunner.RunInteractive(services); #else ServiceBase.Run(services); #endif }
/// <summary> /// The main entry point for the application. /// </summary> static void Main() { var servicesToRun = new ServiceBase[] { ServiceLocator.Current.GetInstance <ServiceContainer>() }; // Run the application in memory or in interactive mode.. if (!Environment.UserInteractive) { ServiceBase.Run(servicesToRun); } else { ServiceRunner.RunInteractive(servicesToRun); } }