/
vshmidt
/
masstransit
Обзор
Документация
Войти
/
vshmidt
/
masstransit
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/MassTransit/Util/Scanning/IAssemblyScanner.cs
99 строк
4 KB
Denys Kozhevnikov
Code cleanup. Remove copyrights
29 май 2020, 12:54
29 май 2020, 12:54
d017e8d
Код
Авторство
О чём код?
namespace MassTransit.Util.Scanning { using System; using System.Reflection; using System.Threading.Tasks; public interface IAssemblyScanner { /// <summary> /// Optional user-supplied diagnostic description of this scanning operation /// </summary> string Description { get; set; } /// <summary> /// Add an Assembly to the scanning operation /// </summary> /// <param name="assembly"></param> void Assembly(Assembly assembly); /// <summary> /// Add an Assembly by name to the scanning operation /// </summary> /// <param name="assemblyName"></param> void Assembly(string assemblyName); /// <summary> /// Add the Assembly that contains type T to the scanning operation /// </summary> /// <typeparam name="T"></typeparam> void AssemblyContainingType<T>(); /// <summary> /// Add the Assembly that contains type to the scanning operation /// </summary> /// <param name="type"></param> void AssemblyContainingType(Type type); /// <summary> /// Exclude types that match the Predicate from being scanned /// </summary> /// <param name="exclude"></param> void Exclude(Func<Type, bool> exclude); /// <summary> /// Exclude all types in this nameSpace or its children from the scanning operation /// </summary> /// <param name="nameSpace"></param> void ExcludeNamespace(string nameSpace); /// <summary> /// Exclude all types in this nameSpace or its children from the scanning operation /// </summary> /// <typeparam name="T"></typeparam> void ExcludeNamespaceContainingType<T>(); /// <summary> /// Only include types matching the Predicate in the scanning operation. You can /// use multiple Include() calls in a single scanning operation /// </summary> /// <param name="predicate"></param> void Include(Func<Type, bool> predicate); /// <summary> /// Only include types from this nameSpace or its children in the scanning operation. You can /// use multiple Include() calls in a single scanning operation /// </summary> /// <param name="nameSpace"></param> void IncludeNamespace(string nameSpace); /// <summary> /// Only include types from this nameSpace or its children in the scanning operation. You can /// use multiple Include() calls in a single scanning operation /// </summary> /// <typeparam name="T"></typeparam> void IncludeNamespaceContainingType<T>(); /// <summary> /// Exclude this specific type from the scanning operation /// </summary> /// <typeparam name="T"></typeparam> void ExcludeType<T>(); void TheCallingAssembly(); void AssembliesFromApplicationBaseDirectory(); void AssembliesAndExecutablesFromPath(string path); void AssembliesFromPath(string path); void AssembliesAndExecutablesFromPath(string path, Func<Assembly, bool> assemblyFilter); void AssembliesFromPath(string path, Func<Assembly, bool> assemblyFilter); void ExcludeFileNameStartsWith(params string[] startsWith); void IncludeFileNameStartsWith(params string[] startsWith); void AssembliesAndExecutablesFromApplicationBaseDirectory(); Task<TypeSet> ScanForTypes(); } }