Allows for specific actions to be taken prior to rendering a page
IUrlAccessController is defined in the Telligent.Evolution.Extensibility.Urls.Version1 namespace of Telligent.Evolution.Platform.dll
Definition
interface IUrlAccessController
{
void AccessDenied(string message, bool messageIsLocalized);
void Found(string url);
void Found(string url, bool isError);
void NotFound(string message, bool messageIsLocalized);
void Redirect(string url);
void Redirect(string url, bool isError);
}
Methods
void AccessDenied(string message, bool messageIsLocalized);
Issues a 403 response with the message in the response body.
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| message | string | Message | Required | ||
| messageIsLocalized | bool | Message Is Localized | Required |
void Found(string url);
Issues a 302 response and redirects to the provided url.
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| url | string | Url | Required |
void Found(string url, bool isError);
Issues a 302 response and redirects to the provided url.
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| url | string | Url | Required | ||
| isError | bool | Is Error | Required |
void NotFound(string message, bool messageIsLocalized);
Issues a 404 response with the message in the response body.
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| message | string | Message | Required | ||
| messageIsLocalized | bool | Message Is Localized | Required |
void Redirect(string url);
Issues a 301 redirect to the specified url.
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| url | string | Url | Required |
void Redirect(string url, bool isError);
Issues a 301 redirect to the specified url.
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| url | string | Url | Required | ||
| isError | bool | Is Error | Required |