Skip to content

Commit

Permalink
Merge pull request #17626 from abpframework/issue-17625
Browse files Browse the repository at this point in the history
Do not remove Integration postfix for auto controllers for integration services
  • Loading branch information
maliming authored Sep 14, 2023
2 parents ecdf450 + 4cc49df commit 1919f5b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ public class AbpConventionalControllerOptions
/// </summary>
public bool UseV3UrlStyle { get; set; }

public string[] IgnoredUrlSuffixesInControllerNames { get; set; } = new[] { "Integration" };

public AbpConventionalControllerOptions()
{
ConventionalControllerSettings = new ConventionalControllerSettingList();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ protected virtual string NormalizeUrlControllerName(string rootPath, string cont
{
if (configuration?.UrlControllerNameNormalizer == null)
{
return controllerName;
return controllerName.RemovePostFix(Options.IgnoredUrlSuffixesInControllerNames);
}

return configuration.UrlControllerNameNormalizer(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public abstract class ApplicationService :
[Obsolete("Use LazyServiceProvider instead.")]
public IServiceProvider ServiceProvider { get; set; } = default!;

public static string[] CommonPostfixes { get; set; } = { "AppService", "ApplicationService", "IntService", "IntegrationService", "Service" };
public static string[] CommonPostfixes { get; set; } = { "AppService", "ApplicationService", "Service" };

public List<string> AppliedCrossCuttingConcerns { get; } = new();

Expand Down

0 comments on commit 1919f5b

Please sign in to comment.