示例#1
0
 public static LocalFolder Bind(MailboxSession mailboxSession, StoreId folderId)
 {
     return(LocalFolder.Bind(mailboxSession, folderId, delegate(LocalFolder folder)
     {
         folder.Initialize();
     }));
 }
示例#2
0
        private static LocalFolder GetLocalFolder(MailboxSession mailboxSession, StoreId sharingFolderId)
        {
            LocalFolder result;

            try
            {
                result = LocalFolder.Bind(mailboxSession, sharingFolderId);
            }
            catch (ObjectNotFoundException ex)
            {
                SharingEngine.Tracer.TraceError <IExchangePrincipal, ObjectNotFoundException>(0L, "{0}: Failed to bind or initialize the local folder. Exception: {1}", mailboxSession.MailboxOwner, ex);
                throw new SharingFolderNotFoundException(ex);
            }
            return(result);
        }
示例#3
0
 public static LocalFolder BindOnly(MailboxSession mailboxSession, StoreId folderId)
 {
     return(LocalFolder.Bind(mailboxSession, folderId, delegate(LocalFolder folder)
     {
     }));
 }