Пример #1
0
 public PrivilegeAddedEvent(IAcSession acSession, PrivilegeBase source, IPrivilegeCreateIo output)
     : base(acSession, source)
 {
     if (output == null)
     {
         throw new System.ArgumentNullException("output");
     }
     this.Output = output;
 }
Пример #2
0
 public static Privilege Create(IPrivilegeCreateIo input)
 {
     Debug.Assert(input.Id != null, "input.Id != null");
     return new Privilege
     {
         Id = input.Id.Value,
         SubjectType = input.SubjectType,
         SubjectInstanceId = input.SubjectInstanceId,
         ObjectType = input.ObjectType,
         ObjectInstanceId = input.ObjectInstanceId,
         AcContent = input.AcContent,
         AcContentType = input.AcContentType
     };
 }
Пример #3
0
 internal PrivilegeAddedEvent(IAcSession acSession, PrivilegeBase source, IPrivilegeCreateIo input, bool isPrivate)
     : this(acSession, source, input)
 {
     this.IsPrivate = isPrivate;
 }