public MigrationUserIdParameter(MigrationUserId identity)
 {
     if (identity == null)
     {
         throw new ArgumentNullException("identity");
     }
     this.MigrationUserId = identity;
     this.RawIdentity     = this.MigrationUserId.ToString();
 }
        public void Initialize(ObjectId objectId)
        {
            MigrationUserId migrationUserId = objectId as MigrationUserId;

            if (migrationUserId == null)
            {
                throw new ArgumentException("objectId");
            }
            this.MigrationUserId = migrationUserId;
        }
Beispiel #3
0
 public static MigrationUserId Redact(MigrationUserId migUserId, out string raw, out string redacted)
 {
     raw      = null;
     redacted = null;
     if (migUserId == null)
     {
         return(null);
     }
     if (migUserId.JobItemGuid != Guid.Empty)
     {
         return(new MigrationUserId(string.Empty, migUserId.JobItemGuid));
     }
     return(new MigrationUserId(SuppressingPiiData.Redact(migUserId.Id, out raw, out redacted), migUserId.JobItemGuid));
 }
Beispiel #4
0
 public Identity(MigrationUserId id) : this((id.JobItemGuid != Guid.Empty) ? id.JobItemGuid.ToString() : id.Id, id.ToString())
 {
 }