C# Class Revenj.Extensibility.Autofac.Features.OpenGenerics.OpenGenericServiceBinder

Mostrar archivo Open project: ngs-doo/revenj Class Usage Examples

Public Methods

Method Description
EnforceBindable ( Type implementationType, IEnumerable services ) : void
TryBindServiceType ( Service service, IEnumerable configuredOpenGenericServices, Type openGenericImplementationType, Type &constructedImplementationType, IEnumerable &constructedServices ) : bool

Private Methods

Method Description
GetInterface ( Type implementationType, Type serviceType ) : Type
IsCompatibleGenericClassDefinition ( Type implementor, Type serviceType ) : bool
TryFindServiceArgumentForImplementationArgumentDefinition ( Type implementationGenericArgumentDefinition, Type>.IEnumerable serviceArgumentDefinitionToArgument ) : Type
TryMapImplementationGenericArguments ( Type implementationType, Type serviceType, Type serviceTypeDefinition, Type serviceGenericArguments ) : System.Type[]

Method Details

EnforceBindable() public static method

public static EnforceBindable ( Type implementationType, IEnumerable services ) : void
implementationType System.Type
services IEnumerable
return void

TryBindServiceType() public static method

public static TryBindServiceType ( Service service, IEnumerable configuredOpenGenericServices, Type openGenericImplementationType, Type &constructedImplementationType, IEnumerable &constructedServices ) : bool
service Revenj.Extensibility.Autofac.Core.Service
configuredOpenGenericServices IEnumerable
openGenericImplementationType System.Type
constructedImplementationType System.Type
constructedServices IEnumerable
return bool