RegistrationConventionHandler

Name Value
Assembly Catel.Core
Namespace Catel.IoC
Available on .NET Framework 4.5, .NET Framework 4.6, Portable Class Libraries, Xamarin - Android, Xamarin - iOS
public class RegistrationConventionHandler : IRegistrationConventionHandler

Implements interfaces IRegistrationConventionHandler

Represents the IRegistrationConventionHandler implementation.

Fields

Constructors

RegistrationConventionHandler(IServiceLocator serviceLocator, ITypeFactory typeFactory)

Initializes a new instance of the RegistrationConventionHandler class.

Parameters

Name Description
serviceLocator The service locator.
typeFactory The type factory.

Properties

AssemblyFilter

Gets the assembly filter.

Default

Gets the default instance of the registration convention handler.

RegistrationConventions

Gets the registration conventions.

TypeFilter

Gets the type filter.

Methods

AddAssemblyToScan(Assembly assembly)

Adds the assembly to scan.

Parameters

Name Description
assembly The assembly.

Exceptions

Name Description
System.ArgumentNullException The assembly isnull.

ApplyConventions()

Applies the registered conventions.

RegisterConvention<TRegistrationConvention>(RegistrationType registrationType)

Registers the convention.

RemoveIfAlreadyRegistered(Type type)

Removes the specified type in the container if already registered.

Parameters

Name Description
type The type.

Exceptions

Name Description
ArgumentNullException The type isnull.

Have a question about Catel? Use StackOverflow with the Catel tag!


Discussion