Rename method GetServices to GetServiceTypes for clarity (relevant for #2)
This commit is contained in:
@@ -14,7 +14,7 @@ public class ServiceContainer {
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <typeparam name="TServices"></typeparam>
|
/// <typeparam name="TServices"></typeparam>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public List<Type> GetServices<TServices>() =>
|
public List<Type> GetServiceTypes<TServices>() =>
|
||||||
descriptors.Where(d => d.ServiceType == typeof(TServices))
|
descriptors.Where(d => d.ServiceType == typeof(TServices))
|
||||||
.Select(d => d.ImplementationType).ToList();
|
.Select(d => d.ImplementationType).ToList();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user