Interface IHttpServiceRouteBuilder
Регистратор правил маршрутизации запросов сервиса.
Namespace:InfinniPlatform.Http
Assembly:InfinniPlatform.Core.Abstractions.dll
Syntax
public interface IHttpServiceRouteBuilder
Properties
| Improve this Doc View SourceItem[String]
Устанавливает обработчик запросов.
Declaration
Func<IHttpRequest, Task<object>> this[string path] { set; }
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | path | Путь запроса. |
Property Value
| Type | Description |
|---|---|
| Func<IHttpRequest, Task<System.Object>> | Обработчик запроса. |
Routes
Правила маршрутизации запросов.
Declaration
IEnumerable<IHttpServiceRoute> Routes { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<IHttpServiceRoute> |