Esempio n. 1
0
 public static void ExecutePreOps(ConDepSettings conDepSettings, CancellationToken token)
 {
     Logger.WithLogSection("Executing pre-operations", () =>
     {
         foreach (var server in conDepSettings.Config.Servers)
         {
             Logger.WithLogSection(server.Name, () =>
             {
                 //Todo: This will not work with ConDep server. After first run, this key will always exist.
                 if (!ConDepGlobals.ServersWithPreOps.ContainsKey(server.Name))
                 {
                     var remotePreOps = new PreRemoteOps(new PowerShellExecutor());
                     var dsl          = new RemoteOperationsBuilder(server, conDepSettings, token);
                     remotePreOps.Execute(dsl, server, conDepSettings, token);
                     ConDepGlobals.ServersWithPreOps.Add(server.Name, server);
                 }
             });
         }
     });
 }
 public static void ExecutePreOps(ConDepSettings conDepSettings, CancellationToken token)
 {
     Logger.WithLogSection("Executing pre-operations", () =>
     {
         foreach (var server in conDepSettings.Config.Servers)
         {
             Logger.WithLogSection(server.Name, () =>
             {
                 //Todo: This will not work with ConDep server. After first run, this key will always exist.
                 if (!ConDepGlobals.ServersWithPreOps.ContainsKey(server.Name))
                 {
                     var remotePreOps = new PreRemoteOps(new PowerShellExecutor());
                     var dsl = new RemoteOperationsBuilder(server, conDepSettings, token);
                     remotePreOps.Execute(dsl, server, conDepSettings, token);
                     ConDepGlobals.ServersWithPreOps.Add(server.Name, server);
                 }
             });
         }
     });
 }