Click or drag to resize

RequestContextExtensionsRegisterOwinSchemeHandlerFactory Method

Version 94.4.20
Extension method to register a instance of the OwinSchemeHandlerFactory with the provided appFunc for the domainName

Namespace:  CefSharp
Assembly:  CefSharp (in CefSharp.dll) Version: 94.4.20.0 (94.4.20.0)
Syntax
public static void RegisterOwinSchemeHandlerFactory(
	this IRequestContext requestContext,
	string schemeName,
	string domainName,
	Func<IDictionary<string, Object>, Task> appFunc
)

Parameters

requestContext
Type: CefSharpIRequestContext
request context
schemeName
Type: SystemString
scheme name, e.g. http(s). If registering for a custom scheme then that scheme must be already registered. It's recommended that you use https or http with a domain name rather than using a custom scheme.
domainName
Type: SystemString
Optional domain name
appFunc
Type: SystemFuncIDictionaryString, Object, Task
OWIN AppFunc as defined at owin.org

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IRequestContext. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also