Hide

YetaWF.Core Package Documentation

Display
Print

YetaWF.Core.Support.YetaWFManager.MakeInitialThreadInstance Method

Attaches a YetaWFManager instance to the current thread. For internal framework use only. This is only used by console applications.

Class: YetaWF.Core.Support.YetaWFManager
Namespace: YetaWF.Core.Support
Assembly: YetaWF.Core

Syntax

public static YetaWFManager MakeInitialThreadInstance( SiteDefinition? site );
public static YetaWFManager MakeInitialThreadInstance(
    SiteDefinition? site,
    HttpContext? context,
    bool forceSync = false );

Parameters

site

Defines the site associated with the Manager instance.

context

The HttpContext instance for the current request. If null is specified, local thread storage is used instead of attaching the Manager instance to the HttpRequest.

forceSync

Specify true to force synchronous requests, otherwise async requests are used.

Return Value

The Manager instance for the current request.

See Also YetaWF.Core.Support.YetaWFManager ClassYetaWF.Core Overview