IDependencyRegistrator
Represents a dependency registrator.
IStashboxContainer Register<TFrom, TTo>(Action<RegistrationConfigurator<TFrom, TTo>> configurator) where TTo : TFrom
Registers a service into the container.
Registers a service into the container with a name.
IStashboxContainer Register<TFrom>(Type typeTo, Action<RegistrationConfigurator<TFrom, TFrom>> configurator = null)
Registers a service into the container.
IStashboxContainer Register(Type typeFrom, Type typeTo, Action<RegistrationConfigurator> configurator = null)
Registers a service into the container.
Registers a service into the container.
Registers a service into the container.
Registers a service into the container.
IStashboxContainer RegisterInstance<TInstance>(TInstance instance, object name = null, bool withoutDisposalTracking = false, Action<TInstance> finalizerDelegate = null)
Registers an already constructed instance into the container.
IStashboxContainer RegisterInstance(object instance, Type serviceType, object name = null, bool withoutDisposalTracking = false)
Registers an already constructed instance into the container.
Registers a named service with scoped lifetime.
Registers a named service with scoped lifetime.
Registers a named service with scoped lifetime.
Registers a named service with singleton lifetime.
Registers a named service with singleton lifetime.
Registers a named service with singleton lifetime.
IStashboxContainer WireUp<TInstance>(TInstance instance, object name = null, bool withoutDisposalTracking = false, Action<TInstance> finalizerDelegate = null)
Registers an already constructed instance, but the container will perform injections and extensions on it.
IStashboxContainer WireUp(object instance, Type serviceType, object name = null, bool withoutDisposalTracking = false)
Registers an already constructed instance, but the container will perform injections and extensions on it.