Пример #1
0
 // Token: 0x06000D19 RID: 3353 RVA: 0x00030D18 File Offset: 0x0002EF18
 protected override void InitSubscriptionInternal()
 {
     if (!base.UserContext.MailboxSessionLockedByCurrentThread())
     {
         throw new InvalidOperationException("UserContext lock should be acquired before calling this method RowNotificationHandler.InitSubscriptionInternal");
     }
     ExTraceGlobals.NotificationsCallTracer.TraceDebug <string>((long)this.GetHashCode(), "RowNotificationHandler.InitSubscriptionInternal Start. SubscriptionId: {0}", base.SubscriptionId);
     if (!SearchUtil.IsViewFilterNonQuery(this.viewFilter) || this.clutterFilter != ClutterFilter.All)
     {
         this.CreateSubscriptionForFilteredView();
     }
     else
     {
         if (this.folderId == null)
         {
             string message = string.Format(CultureInfo.InvariantCulture, "RowNotificationHandler: OriginalStoreFolderId {0} OriginalStoreFolderIdAsString {1} FolderId {2}", new object[]
             {
                 this.originalFolderId,
                 this.originalFolderIdAsString,
                 this.folderId
             });
             throw new OwaInvalidOperationException(message);
         }
         using (Folder folder = Folder.Bind(base.UserContext.MailboxSession, this.folderId))
         {
             ExTraceGlobals.NotificationsCallTracer.TraceDebug <string>((long)this.GetHashCode(), "RowNotificationHandler.InitSubscriptionInternal create folder subscription {0}", base.SubscriptionId);
             this.CreateSubscription(folder);
         }
     }
     ExTraceGlobals.NotificationsCallTracer.TraceDebug <string>((long)this.GetHashCode(), "RowNotificationHandler.InitSubscriptionInternal End. subscription {0}", base.SubscriptionId);
 }