加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
IAssemblySelector.cs 2.27 KB
一键复制 编辑 原始数据 按行查看 历史
nodyang 提交于 2022-01-08 20:06 . 添加项目文件。
using System;
using System.Collections.Generic;
using System.Reflection;
namespace Chims.Extensions.DI
{
/// <summary>
/// 程序集选择器
/// </summary>
public interface IAssemblySelector : IFluentInterface
{
/// <summary>
/// Will scan for types from the assembly of type <typeparamref name="T" />.
/// </summary>
/// <typeparam name="T">The type in which assembly that should be scanned.</typeparam>
IImplementationTypeSelector FromAssemblyOf<T>();
/// <summary>
/// Will scan for types from the assemblies of each <see cref="Type" /> in <paramref name="types" />.
/// </summary>
/// <param name="types">The types in which assemblies that should be scanned.</param>
/// <exception cref="ArgumentNullException">If the <paramref name="types" /> argument is <c>null</c>.</exception>
IImplementationTypeSelector FromAssembliesOf(params Type[] types);
/// <summary>
/// Will scan for types from the assemblies of each <see cref="Type" /> in <paramref name="types" />.
/// </summary>
/// <param name="types">The types in which assemblies that should be scanned.</param>
/// <exception cref="ArgumentNullException">If the <paramref name="types" /> argument is <c>null</c>.</exception>
IImplementationTypeSelector FromAssembliesOf(IEnumerable<Type> types);
/// <summary>
/// Will scan for types in each <see cref="Assembly" /> in <paramref name="assemblies" />.
/// </summary>
/// <param name="assemblies">The assemblies to should be scanned.</param>
/// <exception cref="ArgumentNullException">If the <paramref name="assemblies" /> argument is <c>null</c>.</exception>
IImplementationTypeSelector FromAssemblies(params Assembly[] assemblies);
/// <summary>
/// Will scan for types in each <see cref="Assembly" /> in <paramref name="assemblies" />.
/// </summary>
/// <param name="assemblies">The assemblies to should be scanned.</param>
/// <exception cref="ArgumentNullException">If the <paramref name="assemblies" /> argument is <c>null</c>.</exception>
IImplementationTypeSelector FromAssemblies(IEnumerable<Assembly> assemblies);
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化