Пример #1
0
 protected virtual void RegenerateServicesNamesForServices(RuntimeEnvironment runtimeEnvironment, params ServiceInstaller[] serviceInstallers)
 {
     foreach (ServiceInstaller serviceInstaller in serviceInstallers)
     {
         serviceInstaller.ServiceName += "_" + runtimeEnvironment.ToString().ToUpper();
         serviceInstaller.Description += " (" + runtimeEnvironment.ToString() + " Environment)";
         serviceInstaller.DisplayName += " (" + runtimeEnvironment.ToString() + ")";
     }
 }