Exemplo n.º 1
0
 /// <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));
 }
Exemplo n.º 2
0
        /// <summary>
        /// Returns list of folders that contain calendars owned by this principal.
        /// </summary>
        /// <remarks>This enables calendars discovery owned by current loged-in principal.</remarks>
        public async Task <IEnumerable <IItemCollectionAsync> > GetCalendarHomeSetAsync()
        {
            string calendarsUserFolder = string.Format("{0}{1}/", CalendarsRootFolder.CalendarsRootFolderPath, context.UserName);

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