Ejemplo n.º 1
0
 internal JournalEntry(string id, string environmentId, string tenantId, string projectId,
                       string retentionPolicySet, DateTime installedOn, string extractedTo, string customInstallationDirectory,
                       bool wasSuccessful,
                       DeployedPackage package)
     : this(id, environmentId, tenantId, projectId, retentionPolicySet, installedOn, extractedTo,
            customInstallationDirectory, wasSuccessful,
            package != null ? (IEnumerable <DeployedPackage>) new[] { package } : new List <DeployedPackage>())
 {
 }
Ejemplo n.º 2
0
 public JournalEntry(RunningDeployment deployment, bool wasSuccessful)
     : this(Guid.NewGuid().ToString(),
            deployment.Variables.Get(SpecialVariables.Environment.Id),
            deployment.Variables.Get(SpecialVariables.Deployment.Tenant.Id),
            deployment.Variables.Get(SpecialVariables.Project.Id),
            deployment.Variables.Get(SpecialVariables.RetentionPolicySet),
            DateTime.UtcNow,
            deployment.Variables.Get(SpecialVariables.OriginalPackageDirectoryPath),
            deployment.Variables.Get(SpecialVariables.Package.CustomInstallationDirectory),
            wasSuccessful,
            DeployedPackage.GetDeployedPackages(deployment)
            )
 {
 }
Ejemplo n.º 3
0
 public JournalEntry(XElement element)
     : this(
         element.Attribute("Id")?.Value,
         element.Attribute("EnvironmentId")?.Value,
         element.Attribute("TenantId")?.Value,
         element.Attribute("ProjectId")?.Value,
         element.Attribute("RetentionPolicySet")?.Value,
         ParseDate(element.Attribute("InstalledOn")?.Value),
         element.Attribute("ExtractedTo")?.Value,
         element.Attribute("CustomInstallationDirectory")?.Value,
         ParseBool(element.Attribute("WasSuccessful")?.Value) ?? true,
         DeployedPackage.FromJournalEntryElement(element)
         )
 {
 }