private async Task App_OnPostAuthenticateRequestAsync(object source, EventArgs eventArgs) { HttpContext httpContext = HttpContext.Current; if ((httpContext.User == null) || !httpContext.User.Identity.IsAuthenticated) { return; } using (DavContext context = new DavContext(httpContext)) { // Create calendars for the user during first log-in. await CreateCalendarFoldersAsync(context); // Closes transaction. Calls DavContextBaseAsync.BeforeResponseAsync only first time this method is invoked. // This method must be called manually if DavContextBaseAsync is used outside of DavEngine. await context.EnsureBeforeResponseWasCalledAsync(); } }
/// <summary> /// Initializes a new instance of this class. /// </summary> /// <param name="context">Instance of <see cref="DavContext"/></param> public DavLocationFolder(DavContext context) : base(context, DavLocationFolderPath) { }
public Discovery(DavContext context) { this.Context = context; }
public DavHierarchyItem(DavContext context) : base(context) { }