示例#1
0
        protected override void Process([NotNull] InstallArgs args)
        {
            Assert.ArgumentNotNull(args, "args");

            Assert.IsNotNull(args.Instance, "Instance");
            AgentHelper.DeleteAgentFiles(args.Instance);
        }
 private static void PublishAsync(Instance instance)
 {
     try
     {
         PublishAgentHelper.CopyAgentFiles(instance);
         PublishAgentHelper.Publish(instance);
     }
     catch (ThreadAbortException)
     {
     }
     catch (Exception ex)
     {
         WindowHelper.HandleError($"An error occurred while publishing{Environment.NewLine}{ex.Message}", true, ex);
     }
     finally
     {
         AgentHelper.DeleteAgentFiles(instance);
     }
 }
        protected override void Process([NotNull] InstallModulesArgs args)
        {
            Assert.ArgumentNotNull(args, nameof(args));

            AgentHelper.DeleteAgentFiles(args.Instance);
        }