Exemplo n.º 1
0
 private static void ExecutePostOps(ConDepSettings conDepSettings, CancellationToken token)
 {
     foreach (var server in conDepSettings.Config.Servers)
     {
         //Todo: This will not work with ConDep server. After first run, this key will always exist.
         if (ConDepGlobals.ServersWithPreOps.ContainsKey(server.Name))
         {
             var remotePostOps = new PostRemoteOps();
             var dsl           = new RemoteOperationsBuilder(server, conDepSettings, token);
             remotePostOps.Execute(dsl, server, conDepSettings, token);
             ConDepGlobals.ServersWithPreOps.Remove(server.Name);
         }
     }
 }
 private static void ExecutePostOps(ConDepSettings conDepSettings, CancellationToken token)
 {
     foreach (var server in conDepSettings.Config.Servers)
     {
         //Todo: This will not work with ConDep server. After first run, this key will always exist.
         if (ConDepGlobals.ServersWithPreOps.ContainsKey(server.Name))
         {
             var remotePostOps = new PostRemoteOps();
             var dsl = new RemoteOperationsBuilder(server, conDepSettings, token);
             remotePostOps.Execute(dsl, server, conDepSettings, token);
             ConDepGlobals.ServersWithPreOps.Remove(server.Name);
         }
     }
 }