Class HttpRequestBuilderViewFeaturesExtensions
Contains Microsoft.AspNetCore.Antiforgery.IAntiforgery extension methods for IHttpRequestBuilder.
Inheritance
System.Object
HttpRequestBuilderViewFeaturesExtensions
Namespace:MyTested.AspNetCore.Mvc
Assembly:MyTested.AspNetCore.Mvc.ViewFeatures.dll
Syntax
public static class HttpRequestBuilderViewFeaturesExtensions
Methods
| Improve this Doc View SourceWithAntiForgeryToken(IHttpRequestBuilder)
Adds anti-forgery token to the HttpRequest.
Declaration
public static IAndHttpRequestBuilder WithAntiForgeryToken(this IHttpRequestBuilder httpRequestBuilder)
Parameters
Type | Name | Description |
---|---|---|
IHttpRequestBuilder | httpRequestBuilder | Instance of IHttpRequestBuilder type. |
Returns
Type | Description |
---|---|
MyTested.AspNetCore.Mvc.Builders.Contracts.Http.IAndHttpRequestBuilder | The same IHttpRequestBuilder. |