Esempio n. 1
0
        protected override void CreateOrUpdateSharingBinding(SharingSubscriptionData sharingSubscriptionData, string localFolderName, StoreObjectId folderId)
        {
            SharingBindingData bindingData = SharingBindingData.CreateSharingBindingData(sharingSubscriptionData.DataType, sharingSubscriptionData.SharerName, sharingSubscriptionData.SharerIdentity, sharingSubscriptionData.RemoteFolderName, sharingSubscriptionData.RemoteFolderId, localFolderName, folderId, sharingSubscriptionData.IsPrimary);

            new SharingBindingManager(base.MailboxSession).CreateOrUpdateSharingBinding(bindingData);
        }
 internal static bool EqualContent(SharingBindingData left, SharingBindingData right)
 {
     return(left != null && right != null && left.InitiatorName == right.InitiatorName && left.InitiatorSmtpAddress == right.InitiatorSmtpAddress && left.IsDefaultFolderShared == right.IsDefaultFolderShared && object.Equals(left.LastSyncTimeUtc, right.LastSyncTimeUtc) && object.Equals(left.LocalFolderId, right.LocalFolderId) && left.LocalFolderName == right.LocalFolderName && left.RemoteFolderName == right.RemoteFolderName && left.RemoteFolderId == right.RemoteFolderId);
 }