internal static string GetPackageAuditBlobName(string id, string version, AuditedPackageAction action) { // Audit Blob Name: // /auditing/package/[id]/[version]/[action]-at-[datetime] return(String.Format("package/{0}/{1}/{3}-{2}.json", id, version, action.ToString(), DateTime.UtcNow.ToString("O"))); }
static PackageAuditRecord CreatePackageAuditRecord(AuditedPackageAction packageAction) { return(new PackageAuditRecord(new Package() { PackageRegistration = new PackageRegistration() { Id = "id" } }, packageAction)); }
protected virtual PackageAuditRecord CreateAuditRecord(Package package, PackageRegistration packageRegistration, AuditedPackageAction action, string reason) { return(new PackageAuditRecord(package, action, reason)); }
protected override PackageAuditRecord CreateAuditRecord(Package package, PackageRegistration packageRegistration, AuditedPackageAction action, string reason) { LastAuditRecord = base.CreateAuditRecord(package, packageRegistration, action, reason); return(LastAuditRecord); }
protected override PackageAuditRecord CreateAuditRecord(Package package, PackageRegistration packageRegistration, AuditedPackageAction action, string reason) { LastAuditRecord = base.CreateAuditRecord(package, packageRegistration, action, reason); return LastAuditRecord; }
internal static string GetPackageAuditBlobName(string id, string version, AuditedPackageAction action) { // Audit Blob Name: // /auditing/package/[id]/[version]/[action]-at-[datetime] return String.Format("package/{0}/{1}/{3}-{2}.json", id, version, action.ToString(), DateTime.UtcNow.ToString("O")); }
protected virtual PackageAuditRecord CreateAuditRecord(Package package, PackageRegistration packageRegistration, AuditedPackageAction action, string reason) { return new PackageAuditRecord(package, action, reason); }