Hide

YetaWF.Core Package Documentation

Display
Print

YetaWF.Core.Controllers.PageLogging.RegisterCallback Method

Register an application-specific callback which is called whenever a page is requested.

Class: YetaWF.Core.Controllers.PageLogging
Namespace: YetaWF.Core.Controllers
Assembly: YetaWF.Core

Syntax

public static void RegisterCallback( Func<string,bool,Task> callback );

Parameters

callback

A callback which is called whenever a page is requested.

Remarks

The callback is called whenever a page is requested, for both full page requests and partial "Single Page Application" requests.

The callback receives the URL requested (string) and whether the request is for a full page (bool).

Callbacks cannot be unregistered.

See Also YetaWF.Core.Controllers.PageLogging ClassYetaWF.Core Overview