C# Class Core.Web.Conventions.ServiceTemplateConvention

表示控制器路由模板添加[service]的约定 api/[service]/[controller] => api/service001/[controller]
Inheritance: IControllerModelConvention
Afficher le fichier Open project: Net-Team/Web.Template

Méthodes publiques

Méthode Description
Apply ( ControllerModel controller ) : void

应用约定

ServiceTemplateConvention ( string serviceName ) : Microsoft.AspNetCore.Mvc.ApplicationModels

控制器路由模板添加[service]的约定

Method Details

Apply() public méthode

应用约定
public Apply ( ControllerModel controller ) : void
controller ControllerModel
Résultat void

ServiceTemplateConvention() public méthode

控制器路由模板添加[service]的约定
public ServiceTemplateConvention ( string serviceName ) : Microsoft.AspNetCore.Mvc.ApplicationModels
serviceName string 服务名
Résultat Microsoft.AspNetCore.Mvc.ApplicationModels