|
|
|
@ -30,6 +30,18 @@ namespace Volo.Abp.AspNetCore.Mvc.Conventions |
|
|
|
} |
|
|
|
private string _rootPath; |
|
|
|
|
|
|
|
[NotNull] |
|
|
|
public string RemoteServiceName |
|
|
|
{ |
|
|
|
get => _remoteServiceName; |
|
|
|
set |
|
|
|
{ |
|
|
|
Check.NotNull(value, nameof(value)); |
|
|
|
_remoteServiceName = value; |
|
|
|
} |
|
|
|
} |
|
|
|
private string _remoteServiceName; |
|
|
|
|
|
|
|
[CanBeNull] |
|
|
|
public Func<Type, bool> TypePredicate { get; set; } |
|
|
|
|
|
|
|
@ -46,15 +58,16 @@ namespace Volo.Abp.AspNetCore.Mvc.Conventions |
|
|
|
|
|
|
|
public Action<ApiVersioningOptions> ApiVersionConfigurer { get; set; } |
|
|
|
|
|
|
|
public ConventionalControllerSetting([NotNull] Assembly assembly, [NotNull] string rootPath) |
|
|
|
public ConventionalControllerSetting( |
|
|
|
[NotNull] Assembly assembly, |
|
|
|
[NotNull] string rootPath, |
|
|
|
[NotNull] string remoteServiceName) |
|
|
|
{ |
|
|
|
Check.NotNull(assembly, rootPath); |
|
|
|
|
|
|
|
Assembly = assembly; |
|
|
|
RootPath = rootPath; |
|
|
|
Assembly = Check.NotNull(assembly, nameof(assembly)); |
|
|
|
RootPath = Check.NotNull(rootPath, nameof(rootPath)); |
|
|
|
RemoteServiceName = Check.NotNull(remoteServiceName, nameof(remoteServiceName)); |
|
|
|
|
|
|
|
ControllerTypes = new HashSet<Type>(); |
|
|
|
|
|
|
|
ApiVersions = new List<ApiVersion>(); |
|
|
|
} |
|
|
|
|
|
|
|
|