SIM.Pipelines.Agent.AgentHelper.InstallPackage C# (CSharp) Method

InstallPackage() public static method

public static InstallPackage ( [ instance, [ module ) : void
instance [
module [
return void
        public static void InstallPackage([NotNull] Instance instance, [NotNull] Product module)
        {
            Assert.ArgumentNotNull(instance, "instance");
              Assert.ArgumentNotNull(module, "module");

              string fileName = Path.GetFileName(module.PackagePath);
              Assert.IsNotNull(fileName, "name");

              string installPackageUrl = GetUrl(instance, AgentFiles.InstallPackageFileName, fileName);

              string statusUrl = GetUrl(instance, AgentFiles.StatusFileName);

              ExecuteAgent(AgentFiles.StatusFileName, statusUrl, AgentFiles.InstallPackageFileName, installPackageUrl, PackageInstalling, PackageInstalled);
        }