Exemplo n.º 1
0
 public static void ValidateFolder(MailboxSession mailboxSession, StoreId sharingFolderId)
 {
     SharingEngine.GetADUser(mailboxSession);
     SharingEngine.GetSubscriptionData(mailboxSession, StoreId.GetStoreObjectId(sharingFolderId));
     using (SharingEngine.BindToLocalFolder(mailboxSession, sharingFolderId))
     {
     }
     SharingEngine.GetExternalAuthentication(mailboxSession);
 }
Exemplo n.º 2
0
        private static SharingEngine Create(MailboxSession mailboxSession, StoreId sharingFolderId)
        {
            ADUser aduser = SharingEngine.GetADUser(mailboxSession);
            SharingSubscriptionData subscriptionData = SharingEngine.GetSubscriptionData(mailboxSession, (StoreObjectId)sharingFolderId);

            SharingEngine.Tracer.TraceDebug <IExchangePrincipal, SharingSubscriptionData>(0L, "{0}: Found subscription data: {1}", mailboxSession.MailboxOwner, subscriptionData);
            ExternalAuthentication externalAuthentication = SharingEngine.GetExternalAuthentication(mailboxSession);

            return(new SharingEngine(mailboxSession.Culture, mailboxSession.MailboxOwner, sharingFolderId, subscriptionData, externalAuthentication, aduser));
        }