View Source
Class AspNetCoreRequestAccessor
Inheritance
System.Object
Assembly: Umbraco.Web.Common.dll
Syntax
public class AspNetCoreRequestAccessor : IRequestAccessor
Constructors
View Source
AspNetCoreRequestAccessor(IHttpContextAccessor, IOptionsMonitor<WebRoutingSettings>)
Declaration
public AspNetCoreRequestAccessor(IHttpContextAccessor httpContextAccessor, IOptionsMonitor<WebRoutingSettings> webRoutingSettings)
Parameters
Type |
Name |
Description |
Microsoft.AspNetCore.Http.IHttpContextAccessor |
httpContextAccessor |
|
Microsoft.Extensions.Options.IOptionsMonitor<WebRoutingSettings> |
webRoutingSettings |
|
Methods
View Source
Dispose()
Declaration
View Source
GetApplicationUrl()
Declaration
public Uri? GetApplicationUrl()
Returns
Type |
Description |
System.Nullable<Uri> |
|
View Source
GetQueryStringValue(String)
Declaration
public string GetQueryStringValue(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
Type |
Description |
System.String |
|
View Source
GetRequestUrl()
Declaration
public Uri? GetRequestUrl()
Returns
Type |
Description |
System.Nullable<Uri> |
|
View Source
GetRequestValue(String)
Declaration
public string GetRequestValue(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
Type |
Description |
System.String |
|
View Source
Handle(UmbracoRequestBeginNotification)
This is now a NoOp, and is no longer used, instead ApplicationUrlRequestBeginNotificationHandler is used
Declaration
public void Handle(UmbracoRequestBeginNotification notification)
Parameters
Type |
Name |
Description |
UmbracoRequestBeginNotification |
notification |
|