C# Class CqrsSpirit.CqrsSpiritExtensions

显示文件 Open project: sergeyzwezdin/cqs.net

Public Methods

Method Description
AddCqrsSpirit ( this services, Assembly assemblies, bool>.Func filter = null ) : IServiceCollection

Registers CQRS chunks into service container

AddCqrsSpirit ( this services, Microsoft.Extensions.DependencyModel.DependencyContext dependencyContext, bool>.Func filter = null ) : IServiceCollection

Registers CQRS chunks into service container

AddCqrsSpirit ( this services, bool>.Func filter = null ) : IServiceCollection

Registers CQRS chunks into service container

AddCqrsSpirit ( this services, Type>.IDictionary queries, Type>.IDictionary commands, Type>.IDictionary workflows ) : IServiceCollection

Registers CQRS chunks into service container

AddCqrsSpirit ( this services, Type types ) : IServiceCollection

Registers CQRS chunks into service container

Private Methods

Method Description
MatchTypes ( Type types, TypeInfo baseTypeDefinition ) : Type>.IDictionary
MatchTypesByGenerics ( Type types, TypeInfo genericTypeDefinition, TypeInfo baseTypeDefinition ) : Type>.IDictionary

Method Details

AddCqrsSpirit() public static method

Registers CQRS chunks into service container
public static AddCqrsSpirit ( this services, Assembly assemblies, bool>.Func filter = null ) : IServiceCollection
services this DI container
assemblies System.Reflection.Assembly Assemblies list where is CQRS stuff is placed
filter bool>.Func Predicate to filter types you would like to register
return IServiceCollection

AddCqrsSpirit() public static method

Registers CQRS chunks into service container
public static AddCqrsSpirit ( this services, Microsoft.Extensions.DependencyModel.DependencyContext dependencyContext, bool>.Func filter = null ) : IServiceCollection
services this DI container
dependencyContext Microsoft.Extensions.DependencyModel.DependencyContext Dependencies
filter bool>.Func Predicate to filter types you would like to register
return IServiceCollection

AddCqrsSpirit() public static method

Registers CQRS chunks into service container
public static AddCqrsSpirit ( this services, bool>.Func filter = null ) : IServiceCollection
services this DI container
filter bool>.Func Predicate to filter types you would like to register
return IServiceCollection

AddCqrsSpirit() public static method

Registers CQRS chunks into service container
public static AddCqrsSpirit ( this services, Type>.IDictionary queries, Type>.IDictionary commands, Type>.IDictionary workflows ) : IServiceCollection
services this DI container
queries Type>.IDictionary List of queries to register
commands Type>.IDictionary List of commands to register
workflows Type>.IDictionary List of workflows to register
return IServiceCollection

AddCqrsSpirit() public static method

Registers CQRS chunks into service container
public static AddCqrsSpirit ( this services, Type types ) : IServiceCollection
services this DI container
types System.Type List of types to register
return IServiceCollection