C# Класс Decision.Common.Filters.RedirectToHttpsAttribute

Наследование: System.Web.Mvc.FilterAttribute, IAuthorizationFilter
Показать файл Открыть проект

Открытые методы

Метод Описание
OnAuthorization ( System.Web.Mvc.AuthorizationContext filterContext ) : void

Determines whether a request is secured (HTTPS) and, if it is not, calls the HandleNonHttpsRequest method.

RedirectToHttpsAttribute ( bool permanent ) : System

Initializes a new instance of the RedirectToHttpsAttribute class.

Защищенные методы

Метод Описание
HandleNonHttpsRequest ( System.Web.Mvc.AuthorizationContext filterContext ) : void

Handles unsecured HTTP requests that are sent to the action method.

Описание методов

HandleNonHttpsRequest() защищенный Метод

Handles unsecured HTTP requests that are sent to the action method.
The HTTP request contains an invalid transfer method override. /// All GET requests are considered invalid. A HTTP 405 Method Not Allowed is thrown.
protected HandleNonHttpsRequest ( System.Web.Mvc.AuthorizationContext filterContext ) : void
filterContext System.Web.Mvc.AuthorizationContext An object that encapsulates information that is required in order to use the /// attribute.
Результат void

OnAuthorization() публичный Метод

Determines whether a request is secured (HTTPS) and, if it is not, calls the HandleNonHttpsRequest method.
The parameter is null.
public OnAuthorization ( System.Web.Mvc.AuthorizationContext filterContext ) : void
filterContext System.Web.Mvc.AuthorizationContext An object that encapsulates information that is required in order to use the /// attribute.
Результат void

RedirectToHttpsAttribute() публичный Метод

Initializes a new instance of the RedirectToHttpsAttribute class.
public RedirectToHttpsAttribute ( bool permanent ) : System
permanent bool if set to true the redirection should be permanent; otherwise, /// false.
Результат System