Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AuditChange" /> class.
 /// </summary>
 /// <param name="Property">Property.</param>
 /// <param name="Entity">Entity.</param>
 /// <param name="OldValues">OldValues.</param>
 /// <param name="NewValues">NewValues.</param>
 public AuditChange(string Property = null, AuditEntityReference Entity = null, List <string> OldValues = null, List <string> NewValues = null)
 {
     this.Property  = Property;
     this.Entity    = Entity;
     this.OldValues = OldValues;
     this.NewValues = NewValues;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DocumentAudit" /> class.
 /// </summary>
 /// <param name="Name">Name.</param>
 /// <param name="User">User.</param>
 /// <param name="Workspace">Workspace.</param>
 /// <param name="TransactionId">TransactionId.</param>
 /// <param name="TransactionInitiator">TransactionInitiator.</param>
 /// <param name="Application">Application.</param>
 /// <param name="ServiceName">ServiceName.</param>
 /// <param name="Level">Level.</param>
 /// <param name="Timestamp">Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param>
 /// <param name="Status">Status.</param>
 /// <param name="ActionContext">ActionContext.</param>
 /// <param name="Action">Action.</param>
 /// <param name="Entity">Entity.</param>
 /// <param name="Changes">Changes.</param>
 public DocumentAudit(string Name = null, UriReference User = null, UriReference Workspace = null, string TransactionId = null, bool?TransactionInitiator = null, string Application = null, string ServiceName = null, LevelEnum?Level = null, DateTime?Timestamp = null, StatusEnum?Status = null, ActionContextEnum?ActionContext = null, ActionEnum?Action = null, AuditEntityReference Entity = null, List <AuditChange> Changes = null)
 {
     this.Name                 = Name;
     this.User                 = User;
     this.Workspace            = Workspace;
     this.TransactionId        = TransactionId;
     this.TransactionInitiator = TransactionInitiator;
     this.Application          = Application;
     this.ServiceName          = ServiceName;
     this.Level                = Level;
     this.Timestamp            = Timestamp;
     this.Status               = Status;
     this.ActionContext        = ActionContext;
     this.Action               = Action;
     this.Entity               = Entity;
     this.Changes              = Changes;
 }