Пример #1
0
 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));
 }
Пример #3
0
 protected virtual PackageAuditRecord CreateAuditRecord(Package package, PackageRegistration packageRegistration, AuditedPackageAction action, string reason)
 {
     return(new PackageAuditRecord(package, action, reason));
 }
Пример #4
0
 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;
 }
Пример #6
0
 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);
 }