public static LocalFolder Bind(MailboxSession mailboxSession, StoreId folderId) { return(LocalFolder.Bind(mailboxSession, folderId, delegate(LocalFolder folder) { folder.Initialize(); })); }
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); }
public static LocalFolder BindOnly(MailboxSession mailboxSession, StoreId folderId) { return(LocalFolder.Bind(mailboxSession, folderId, delegate(LocalFolder folder) { })); }