Browse Source

Make ControllerTypes internal.

pull/14051/head
Halil İbrahim Kalkan 4 years ago
parent
commit
ac0e488ecb
  1. 8
      framework/src/Volo.Abp.AspNetCore.Mvc/Volo/Abp/AspNetCore/Mvc/Conventions/ConventionalControllerSetting.cs

8
framework/src/Volo.Abp.AspNetCore.Mvc/Volo/Abp/AspNetCore/Mvc/Conventions/ConventionalControllerSetting.cs

@ -4,6 +4,7 @@ using Microsoft.AspNetCore.Mvc.ApplicationModels;
using Microsoft.AspNetCore.Mvc.Versioning; using Microsoft.AspNetCore.Mvc.Versioning;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq; using System.Linq;
using System.Reflection; using System.Reflection;
using Volo.Abp.Reflection; using Volo.Abp.Reflection;
@ -16,7 +17,7 @@ public class ConventionalControllerSetting
public Assembly Assembly { get; } public Assembly Assembly { get; }
[NotNull] [NotNull]
public HashSet<Type> ControllerTypes { get; } //TODO: Internal? internal HashSet<Type> ControllerTypes { get; }
/// <summary> /// <summary>
/// Set true to use the old style URL path style. /// Set true to use the old style URL path style.
@ -85,6 +86,11 @@ public class ConventionalControllerSetting
} }
} }
public IReadOnlyList<Type> GetControllerTypes()
{
return ControllerTypes.ToImmutableList();
}
private static bool IsRemoteService(Type type) private static bool IsRemoteService(Type type)
{ {
if (!type.IsPublic || type.IsAbstract || type.IsGenericType) if (!type.IsPublic || type.IsAbstract || type.IsGenericType)

Loading…
Cancel
Save