<PackageReference Include="castle.windsor" Version="2.5.2" />

DefaultNamingSubSystem

Default INamingSubSystem implementation. Keeps services map as a simple hash table. Keeps key map as a list dictionary to maintain order. Does not support a query string.
protected readonly IDictionary<string, IHandler> key2Handler

Map(String, IHandler) to map component keys to IHandler Items in this dictionary are sorted in insertion order.

Map(Type, IHandler) to map a service to IHandler. If there is more than a single service of the type, only the first registered services is stored in this dictionary. It serve as a fast lookup for the common case of having a single handler for a type.

public virtual int ComponentCount { get; }

Initializes a new instance of the DefaultNamingSubSystem class.

public void AddHandlerSelector(IHandlerSelector selector)

public virtual bool Contains(string key)

public virtual bool Contains(Type service)

public virtual IHandler[] GetAssignableHandlers(Type service)

public virtual IHandler GetHandler(string key)

public virtual IHandler GetHandler(Type service)

public virtual IHandler GetHandler(string key, Type service)

public virtual IHandler[] GetHandlers(string query)

public virtual IHandler[] GetHandlers(Type service)

public virtual IHandler[] GetHandlers()

protected virtual IHandler GetSelectorsOpinion(string key, Type type)

public virtual void Register(string key, IHandler handler)

public virtual void UnRegister(string key)

public virtual void UnRegister(Type service)