API Diff between 5.4.2 and 5.9.1
60 Additions
109 Removals
Stashbox
-
public interface IStashboxContainer : IDependencyRegistrator, IDependencyResolver, IServiceProvider, IAsyncDisposable, IDisposable, IDependencyReMapper, IDependencyCollectionRegistrator, IDecoratorRegistrator, IFuncRegistrator
-
public sealed class StashboxContainer : IStashboxContainer, IDependencyRegistrator, IDependencyResolver, IServiceProvider, IAsyncDisposable, IDisposable, IDependencyReMapper, IDependencyCollectionRegistrator, IDecoratorRegistrator, IFuncRegistrator
Stashbox.Lifetime
-
public abstract class ExpressionLifetimeDescriptor : LifetimeDescriptor
-
public abstract class FactoryLifetimeDescriptor : LifetimeDescriptor
- protected abstract Expression ApplyLifetime(Func<IResolutionScope, IRequestContext, object> factory, ServiceRegistration serviceRegistration, ResolutionContext resolutionContext, Type resolveType)
- protected abstract Expression ApplyLifetime(Func<IResolutionScope, IRequestContext, object> factory, ServiceRegistration serviceRegistration, ResolutionContext resolutionContext, Type resolveType)
Stashbox.Multitenant
-
public interface ITenantDistributor : IAsyncDisposable, IDisposable
-
public sealed class TenantDistributor : ITenantDistributor, IAsyncDisposable, IDisposable
- public IContainerContext ContainerContext { get; }
- public IStashboxContainer RootContainer { get; }
- public object Activate(Type type, object[] arguments)
- public IDependencyResolver BeginScope(object name = null, bool attachToParent = false)
- public TTo BuildUp<TTo>(TTo instance)
- public bool CanResolve<TFrom>(object name = null)
- public bool CanResolve(Type typeFrom, object name = null)
- public IStashboxContainer ComposeBy(Type compositionRootType, object[] compositionRootArguments)
- public IStashboxContainer ComposeBy(ICompositionRoot compositionRoot)
- public void Configure(Action<ContainerConfigurator> config)
- public void ConfigureTenant(object tenantId, Action<IStashboxContainer> tenantConfig)
- public IStashboxContainer CreateChildContainer(Action<ContainerConfigurator> config = null)
- public void ConfigureTenant(object tenantId, Func<IStashboxContainer, IDisposable> tenantConfig)
- public IEnumerable<DelegateCacheEntry> GetDelegateCacheEntries()
- public IEnumerable<RegistrationDiagnosticsInfo> GetRegistrationDiagnostics()
- public IEnumerable<KeyValuePair<Type, ServiceRegistration>> GetRegistrationMappings()
- public object GetService(Type serviceType)
- public ValueTask InvokeAsyncInitializers(CancellationToken token = default)
- public bool IsRegistered<TFrom>(object name = null)
- public bool IsRegistered(Type typeFrom, object name = null)
- public void PutInstanceInScope(Type typeFrom, object instance, bool withoutDisposalTracking = false, object name = null)
- public IStashboxContainer Register<TFrom, TTo>(Action<RegistrationConfigurator<TFrom, TTo>> configurator) where TTo : TFrom
- public IStashboxContainer Register<TFrom, TTo>(object name = null) where TTo : TFrom
- public IStashboxContainer Register<TFrom>(Type typeTo, Action<RegistrationConfigurator<TFrom, TFrom>> configurator = null)
- public IStashboxContainer Register(Type typeFrom, Type typeTo, Action<RegistrationConfigurator> configurator = null)
- public IStashboxContainer Register<TTo>(Action<RegistrationConfigurator<TTo, TTo>> configurator)
- public IStashboxContainer Register<TTo>(object name = null)
- public IStashboxContainer Register(Type typeTo, Action<RegistrationConfigurator> configurator = null)
- public IStashboxContainer RegisterDecorator(Type typeFrom, Type typeTo, Action<DecoratorConfigurator> configurator = null)
- public IStashboxContainer RegisterDecorator<TFrom, TTo>(Action<DecoratorConfigurator<TFrom, TTo>> configurator = null) where TTo : TFrom
- public IStashboxContainer RegisterDecorator(Type typeTo, Action<DecoratorConfigurator> configurator = null)
- public IStashboxContainer RegisterDecorator<TTo>(Action<DecoratorConfigurator<TTo, TTo>> configurator = null)
- public IStashboxContainer RegisterDecorator<TFrom>(Type typeTo, Action<DecoratorConfigurator<TFrom, TFrom>> configurator = null)
- public IStashboxContainer RegisterFunc<TService>(Func<IDependencyResolver, TService> factory, object name = null)
- public IStashboxContainer RegisterFunc<T1, TService>(Func<T1, IDependencyResolver, TService> factory, object name = null)
- public IStashboxContainer RegisterFunc<T1, T2, TService>(Func<T1, T2, IDependencyResolver, TService> factory, object name = null)
- public IStashboxContainer RegisterFunc<T1, T2, T3, TService>(Func<T1, T2, T3, IDependencyResolver, TService> factory, object name = null)
- public IStashboxContainer RegisterFunc<T1, T2, T3, T4, TService>(Func<T1, T2, T3, T4, IDependencyResolver, TService> factory, object name = null)
- public IStashboxContainer RegisterInstance<TInstance>(TInstance instance, object name = null, bool withoutDisposalTracking = false, Action<TInstance> finalizerDelegate = null)
- public IStashboxContainer RegisterInstance(object instance, Type serviceType, object name = null, bool withoutDisposalTracking = false)
- public void RegisterResolver(IResolver resolver)
- public IStashboxContainer RegisterScoped<TFrom, TTo>(object name = null) where TTo : TFrom
- public IStashboxContainer RegisterScoped(Type typeFrom, Type typeTo, object name = null)
- public IStashboxContainer RegisterScoped<TTo>(object name = null)
- public IStashboxContainer RegisterSingleton<TFrom, TTo>(object name = null) where TTo : TFrom
- public IStashboxContainer RegisterSingleton<TTo>(object name = null)
- public IStashboxContainer RegisterSingleton(Type typeFrom, Type typeTo, object name = null)
- public IStashboxContainer RegisterTypes(IEnumerable<Type> types, Func<Type, bool> selector = null, Func<Type, Type, bool> serviceTypeSelector = null, bool registerSelf = true, Action<RegistrationConfigurator> configurator = null)
- public IStashboxContainer RegisterTypesAs(Type typeFrom, IEnumerable<Type> types, Func<Type, bool> selector = null, Action<RegistrationConfigurator> configurator = null)
- public IStashboxContainer ReMap<TFrom, TTo>(Action<RegistrationConfigurator<TFrom, TTo>> configurator = null) where TTo : TFrom
- public IStashboxContainer ReMap<TFrom>(Type typeTo, Action<RegistrationConfigurator<TFrom, TFrom>> configurator = null)
- public IStashboxContainer ReMap(Type typeFrom, Type typeTo, Action<RegistrationConfigurator> configurator = null)
- public IStashboxContainer ReMap<TTo>(Action<RegistrationConfigurator<TTo, TTo>> configurator = null)
- public IStashboxContainer ReMapDecorator(Type typeFrom, Type typeTo, Action<DecoratorConfigurator> configurator = null)
- public IStashboxContainer ReMapDecorator<TFrom, TTo>(Action<DecoratorConfigurator<TFrom, TTo>> configurator = null) where TTo : TFrom
- public IStashboxContainer ReMapDecorator<TFrom>(Type typeTo, Action<DecoratorConfigurator<TFrom, TFrom>> configurator = null)
- public object Resolve(Type typeFrom)
- public object Resolve(Type typeFrom, object[] dependencyOverrides)
- public object Resolve(Type typeFrom, object name)
- public object Resolve(Type typeFrom, object name, object[] dependencyOverrides)
- public IEnumerable<TKey> ResolveAll<TKey>()
- public IEnumerable<TKey> ResolveAll<TKey>(object name)
- public IEnumerable<TKey> ResolveAll<TKey>(object[] dependencyOverrides)
- public IEnumerable<TKey> ResolveAll<TKey>(object name, object[] dependencyOverrides)
- public IEnumerable<object> ResolveAll(Type typeFrom)
- public IEnumerable<object> ResolveAll(Type typeFrom, object name)
- public IEnumerable<object> ResolveAll(Type typeFrom, object[] dependencyOverrides)
- public IEnumerable<object> ResolveAll(Type typeFrom, object name, object[] dependencyOverrides)
- public Delegate ResolveFactory(Type typeFrom, object name = null, Type[] parameterTypes)
- public Delegate ResolveFactoryOrDefault(Type typeFrom, object name = null, Type[] parameterTypes)
- public object ResolveOrDefault(Type typeFrom)
- public object ResolveOrDefault(Type typeFrom, object[] dependencyOverrides)
- public object ResolveOrDefault(Type typeFrom, object name)
- public object ResolveOrDefault(Type typeFrom, object name, object[] dependencyOverrides)
- public IStashboxContainer WireUp<TInstance>(TInstance instance, object name = null, bool withoutDisposalTracking = false, Action<TInstance> finalizerDelegate = null)
- public IStashboxContainer WireUp(object instance, Type serviceType, object name = null, bool withoutDisposalTracking = false)
Stashbox.Registration
-
public class AutoMemberOptions
-
public class ConstructorOptions
-
public class FactoryOptions
-
public interface IDecoratorRepository
- void AddDecorator(Type type, ServiceRegistration serviceRegistration, bool remap)
- IEnumerable<ServiceRegistration> GetDecoratorsOrDefault(Type implementationTypeToDecorate, TypeInformation typeInformation, ResolutionContext resolutionContext)
- IEnumerable<KeyValuePair<Type, ServiceRegistration>> GetRegistrationMappings()
- void AddDecorator(Type type, ServiceRegistration serviceRegistration, bool remap)
- IEnumerable<ServiceRegistration> GetDecoratorsOrDefault(Type implementationTypeToDecorate, TypeInformation typeInformation, ResolutionContext resolutionContext)
- IEnumerable<KeyValuePair<Type, ServiceRegistration>> GetRegistrationMappings()
-
public class InstanceOptions
-
public interface IRegistrationRepository
- bool AddOrReMapRegistration(ServiceRegistration registration, Type serviceType)
- bool AddOrUpdateRegistration(ServiceRegistration registration, Type serviceType)
- bool AddOrReMapRegistration(ServiceRegistration registration, Type serviceType)
- bool AddOrUpdateRegistration(ServiceRegistration registration, Type serviceType)
- IEnumerable<KeyValuePair<Type, ServiceRegistration>> GetRegistrationMappings()
- ServiceRegistration GetRegistrationOrDefault(TypeInformation typeInfo, ResolutionContext resolutionContext)
- IEnumerable<ServiceRegistration> GetRegistrationsOrDefault(TypeInformation typeInfo, ResolutionContext resolutionContext)
- IEnumerable<KeyValuePair<Type, ServiceRegistration>> GetRegistrationMappings()
- ServiceRegistration GetRegistrationOrDefault(TypeInformation typeInfo, ResolutionContext resolutionContext)
- IEnumerable<ServiceRegistration> GetRegistrationsOrDefault(TypeInformation typeInfo, ResolutionContext resolutionContext)
-
public class OpenGenericRegistration : ServiceRegistration
-
public enum RegistrationOption
-
public class ServiceRegistration
Stashbox.Registration.Fluent
Stashbox.Registration.ServiceRegistrations
Stashbox.Resolution
System.Linq.Expressions