Click or drag to resize

WebExtensions Class

Defines extension methods useful for web applications.
Inheritance Hierarchy
SystemObject
  GSF.WebWebExtensions

Namespace: GSF.Web
Assembly: GSF.Web (in GSF.Web.dll) Version: 2.4.218-beta
Syntax
public static class WebExtensions
View Source

The WebExtensions type exposes the following members.

Methods
 NameDescription
Public Extension MethodAddBasicAuthenticationHeader Adds basic authentication header to an HttpClient
Public methodStatic memberAddEmbeddedResourceAssembly Adds embedded resources from the specified assembly.
Public methodStatic memberEmbeddedResourceExists Determines if specified embedded resource exists.
Public Extension MethodFixForwardSpacing Corrects script alignment with a desired number of forward spaces.
Public Extension MethodGetPostData Gets a collection of uploaded post data from an HttpRequestMessage.
Public Extension MethodGetPostDataAsync Asynchronously gets a collection of uploaded post data from an HttpRequestMessage.
Public Extension MethodHtmlEncode Performs HTML encoding on the given string.
Public Extension MethodIncludeResouce Includes an embedded resource directly into an MVC view page.
Public Extension MethodIncludeUrl Includes an HTTP resource directly into an MVC view page.
Public Extension MethodJavaScriptEncode Performs JavaScript encoding on given string.
Public methodStatic memberOpenEmbeddedResourceStream Opens a stream to an embedded resource.
Public Extension MethodParseJsonTimestamp Parses a JSON timestamp into a .NET DateTime.
Public Extension MethodQueryParameters Gets query parameters for current request message
Public Extension MethodRenderResource(HtmlHelper, String, Type, Object) Renders a Razor view from an embedded resource.
Public Extension MethodRenderResourceT(HtmlHelper, String, T) Renders a Razor view from an embedded resource.
Public Extension MethodToAbsoluteUrl Converts relative URL to an absolute URL.
Public Extension MethodUrlEncode Performs URL encoding on the given string.
Top
Fields
 NameDescription
Public fieldStatic memberPostDataKey Key name for Properties dictionary used to cache parsed PostData.
Top
See Also