C# Class Core.Web.Conventions.ServiceTemplateConvention

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

Public Methods

Method Description
Apply ( ControllerModel controller ) : void

应用约定

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

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

Method Details

Apply() public method

应用约定
public Apply ( ControllerModel controller ) : void
controller ControllerModel
return void

ServiceTemplateConvention() public method

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