/// <summary>
 /// Determines whether <paramref name="destFolder"/> is inside this folder.
 /// </summary>
 /// <param name="destFolder">Folder to check.</param>
 /// <returns>Returns <c>true</c> if <paramref name="destFolder"/> is inside thid folder.</returns>
 private bool IsRecursive(DavFolder destFolder)
 {
     return(destFolder.Path.StartsWith(Path));
 }
Beispiel #2
0
        /// <summary>
        /// Returns list of folders that contain address books owned by this principal.
        /// </summary>
        /// <remarks>This enables address books discovery owned by current loged-in principal.</remarks>
        public async Task <IEnumerable <IItemCollectionAsync> > GetAddressbookHomeSetAsync()
        {
            string addressbooksUserFolder = string.Format("{0}{1}/", AddressbooksRootFolder.AddressbooksRootFolderPath, context.UserName);

            return(new[] { await DavFolder.GetFolderAsync(context, addressbooksUserFolder) });
        }