OwinUtils Class

Namespace:
Weavy.Web.Owin
Assembly:
Weavy.Web.dll

Various Owin extension methods.

public static class OwinUtils
Inheritance:
System.Object → OwinUtils

Methods

IsAjax(IOwinRequest) Checks if the request was requested with XMLHttpRequest.
IsBrowser(IOwinRequest) Checks if the request was made from a web browser, i.e. has the string "Mozilla" in the user agent.
IsEmbedded(IOwinRequest) Checks if the request is for an embedded action/view.
IsError(IOwinRequest) Checks if the request is for an error page.
IsLocal(IOwinRequest) Checks if the request is local (from localhost, 127.0.0.1, ::1).
IsManage(IOwinRequest, string) Checks if the request is for the manage area.
IsManaged(IOwinRequest) Checks if the request is for managed code and needs authentication etc.
IsRegisterWindows(IOwinRequest) Checks if the request is for the register-windows action.
IsSetup(IOwinRequest, string) Checks if the request is for the setup wizard.
IsSignalR(IOwinRequest) Checks if the request is for SignalR.
IsStatic(IOwinRequest) Checks if the request is for a "static" file served by managed code that does not need authentication etc.
IsTurbolinks(IOwinRequest) Checks if the request was requested with Turbolinks.
IsValidDuringSetup(IOwinRequest) Checks if the request is valid during setup.
IsValidWhenLicenseError(IOwinRequest) Checks if the request is valid when the license has errors.
IsValidWhenLicenseInvalid(IOwinRequest) Checks if the request is valid when license is invalid.
IsWebDAV(IOwinRequest) Checks if the request is a WebDAV request.
IsWebSocketsEnabled(IOwinContext) Checks if web sockets are enabled on the server.
UseWeavy(IAppBuilder) Configure Weavy and insert the WeavyMiddleware into the Owin pipeline.