Class AbpServiceConvention
Inheritance
object
AbpServiceConvention
Implements
Microsoft.AspNetCore.Mvc.ApplicationModels.IApplicationModelConvention
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Assembly: Volo.Abp.AspNetCore.Mvc.dll
Syntax
public class AbpServiceConvention : IAbpServiceConvention, IApplicationModelConvention, ITransientDependency
Constructors
AbpServiceConvention(IOptions<AbpAspNetCoreMvcOptions>, IConventionalRouteBuilder)
Declaration
public AbpServiceConvention(IOptions<AbpAspNetCoreMvcOptions> options, IConventionalRouteBuilder conventionalRouteBuilder)
Parameters
Properties
ConventionalRouteBuilder
Declaration
protected IConventionalRouteBuilder ConventionalRouteBuilder { get; }
Property Value
Logger
Declaration
public ILogger<AbpServiceConvention> Logger { get; set; }
Property Value
Options
Declaration
protected AbpAspNetCoreMvcOptions Options { get; }
Property Value
Methods
AddAbpServiceSelector(string, string, ActionModel, ConventionalControllerSetting)
Declaration
protected virtual void AddAbpServiceSelector(string rootPath, string controllerName, ActionModel action, ConventionalControllerSetting configuration)
Parameters
| Type |
Name |
Description |
| string |
rootPath |
|
| string |
controllerName |
|
| Microsoft.AspNetCore.Mvc.ApplicationModels.ActionModel |
action |
|
| ConventionalControllerSetting |
configuration |
|
Apply(ApplicationModel)
Declaration
public void Apply(ApplicationModel application)
Parameters
| Type |
Name |
Description |
| Microsoft.AspNetCore.Mvc.ApplicationModels.ApplicationModel |
application |
|
ApplyForControllers(ApplicationModel)
Declaration
protected virtual void ApplyForControllers(ApplicationModel application)
Parameters
| Type |
Name |
Description |
| Microsoft.AspNetCore.Mvc.ApplicationModels.ApplicationModel |
application |
|
CanUseFormBodyBinding(ActionModel, ParameterModel)
Declaration
protected virtual bool CanUseFormBodyBinding(ActionModel action, ParameterModel parameter)
Parameters
| Type |
Name |
Description |
| Microsoft.AspNetCore.Mvc.ApplicationModels.ActionModel |
action |
|
| Microsoft.AspNetCore.Mvc.ApplicationModels.ParameterModel |
parameter |
|
Returns
Declaration
protected virtual void ConfigureApiExplorer(ActionModel action)
Parameters
| Type |
Name |
Description |
| Microsoft.AspNetCore.Mvc.ApplicationModels.ActionModel |
action |
|
Declaration
protected virtual void ConfigureApiExplorer(ControllerModel controller)
Parameters
| Type |
Name |
Description |
| Microsoft.AspNetCore.Mvc.ApplicationModels.ControllerModel |
controller |
|
Declaration
protected virtual void ConfigureParameters(ControllerModel controller)
Parameters
| Type |
Name |
Description |
| Microsoft.AspNetCore.Mvc.ApplicationModels.ControllerModel |
controller |
|
Declaration
protected virtual void ConfigureRemoteService(ControllerModel controller, ConventionalControllerSetting configuration)
Parameters
Declaration
protected virtual void ConfigureSelector(ControllerModel controller, ConventionalControllerSetting configuration)
Parameters
Declaration
protected virtual void ConfigureSelector(string rootPath, string controllerName, ActionModel action, ConventionalControllerSetting configuration)
Parameters
| Type |
Name |
Description |
| string |
rootPath |
|
| string |
controllerName |
|
| Microsoft.AspNetCore.Mvc.ApplicationModels.ActionModel |
action |
|
| ConventionalControllerSetting |
configuration |
|
CreateAbpServiceAttributeRouteModel(string, string, ActionModel, string, ConventionalControllerSetting)
Declaration
protected virtual AttributeRouteModel CreateAbpServiceAttributeRouteModel(string rootPath, string controllerName, ActionModel action, string httpMethod, ConventionalControllerSetting configuration)
Parameters
| Type |
Name |
Description |
| string |
rootPath |
|
| string |
controllerName |
|
| Microsoft.AspNetCore.Mvc.ApplicationModels.ActionModel |
action |
|
| string |
httpMethod |
|
| ConventionalControllerSetting |
configuration |
|
Returns
| Type |
Description |
| Microsoft.AspNetCore.Mvc.ApplicationModels.AttributeRouteModel |
|
GetControllers(ApplicationModel)
Declaration
protected virtual IList<ControllerModel> GetControllers(ApplicationModel application)
Parameters
| Type |
Name |
Description |
| Microsoft.AspNetCore.Mvc.ApplicationModels.ApplicationModel |
application |
|
Returns
| Type |
Description |
| System.Collections.Generic.IList<T><Microsoft.AspNetCore.Mvc.ApplicationModels.ControllerModel> |
|
GetControllerSettingOrNull(Type)
Declaration
protected virtual ConventionalControllerSetting GetControllerSettingOrNull(Type controllerType)
Parameters
| Type |
Name |
Description |
| System.Type |
controllerType |
|
Returns
GetRootPathOrDefault(Type)
Declaration
protected virtual string GetRootPathOrDefault(Type controllerType)
Parameters
| Type |
Name |
Description |
| System.Type |
controllerType |
|
Returns
ImplementsRemoteServiceInterface(Type)
Declaration
protected virtual bool ImplementsRemoteServiceInterface(Type controllerType)
Parameters
| Type |
Name |
Description |
| System.Type |
controllerType |
|
Returns
IsEmptySelector(SelectorModel)
Declaration
protected virtual bool IsEmptySelector(SelectorModel selector)
Parameters
| Type |
Name |
Description |
| Microsoft.AspNetCore.Mvc.ApplicationModels.SelectorModel |
selector |
|
Returns
IsGlobalFeatureEnabled(Type)
Declaration
protected virtual bool IsGlobalFeatureEnabled(Type controllerType)
Parameters
| Type |
Name |
Description |
| System.Type |
controllerType |
|
Returns
IsVisibleRemoteService(Type)
Declaration
protected virtual bool IsVisibleRemoteService(Type controllerType)
Parameters
| Type |
Name |
Description |
| System.Type |
controllerType |
|
Returns
IsVisibleRemoteServiceMethod(MethodInfo)
Declaration
protected virtual bool? IsVisibleRemoteServiceMethod(MethodInfo method)
Parameters
| Type |
Name |
Description |
| System.Reflection.MethodInfo |
method |
|
Returns
NormalizeSelectorRoutes(string, string, ActionModel, ConventionalControllerSetting)
Declaration
protected virtual void NormalizeSelectorRoutes(string rootPath, string controllerName, ActionModel action, ConventionalControllerSetting configuration)
Parameters
| Type |
Name |
Description |
| string |
rootPath |
|
| string |
controllerName |
|
| Microsoft.AspNetCore.Mvc.ApplicationModels.ActionModel |
action |
|
| ConventionalControllerSetting |
configuration |
|
RemoveDuplicateControllers(ApplicationModel)
Declaration
protected virtual void RemoveDuplicateControllers(ApplicationModel application)
Parameters
| Type |
Name |
Description |
| Microsoft.AspNetCore.Mvc.ApplicationModels.ApplicationModel |
application |
|
RemoveEmptySelectors(IList<SelectorModel>)
Declaration
protected virtual void RemoveEmptySelectors(IList<SelectorModel> selectors)
Parameters
| Type |
Name |
Description |
| System.Collections.Generic.IList<T><Microsoft.AspNetCore.Mvc.ApplicationModels.SelectorModel> |
selectors |
|
SelectHttpMethod(ActionModel, ConventionalControllerSetting)
Declaration
protected virtual string SelectHttpMethod(ActionModel action, ConventionalControllerSetting configuration)
Parameters
Returns
Implements
Microsoft.AspNetCore.Mvc.ApplicationModels.IApplicationModelConvention
Extension Methods