Пример #1
0
 // Token: 0x06001AB3 RID: 6835 RVA: 0x00064A44 File Offset: 0x00062C44
 public GetPersonaNotesCommand(CallContext callContext, string personaId, EmailAddressWrapper emailAddress, int maxBytesToFetch, TargetFolderId folderId = null) : base(callContext)
 {
     this.personaId          = personaId;
     this.maxBytesToFetch    = maxBytesToFetch;
     this.emailAddress       = emailAddress;
     this.adRecipientSession = base.CallContext.ADRecipientSessionContext.GetGALScopedADRecipientSession(base.CallContext.EffectiveCaller.ClientSecurityContext);
     this.folderId           = folderId;
 }
Пример #2
0
 public GetGroupCommand(CallContext callContext, ItemId itemId, string adObjectId, EmailAddressWrapper emailAddress, IndexedPageView paging, GetGroupResultSet resultSet, TargetFolderId folderId = null) : base(callContext)
 {
     if (itemId == null && (emailAddress == null || string.IsNullOrEmpty(emailAddress.EmailAddress)) && string.IsNullOrEmpty(adObjectId))
     {
         throw new ArgumentException("Must specify itemId, adObjectId or legacyExchangeDN");
     }
     if (paging == null)
     {
         throw new ArgumentNullException("paging");
     }
     this.itemId     = itemId;
     this.adObjectId = adObjectId;
     if (emailAddress != null && emailAddress.RoutingType != null)
     {
         if (emailAddress.RoutingType.Equals("EX", StringComparison.OrdinalIgnoreCase))
         {
             this.legacyExchangeDN = emailAddress.EmailAddress;
         }
         else if (emailAddress.RoutingType.Equals("SMTP", StringComparison.OrdinalIgnoreCase))
         {
             this.smtpAddress = emailAddress.EmailAddress;
         }
     }
     this.paging         = paging;
     this.resultSet      = resultSet;
     this.hashCode       = this.GetParamsHashCode();
     this.parentFolderid = folderId;
 }