API Diff between 5.0.1-preview-724 and 5.14.1
116 Additions
210 Removals
Stashbox
-
public static class DependencyRegistratorExtensions
- public static IStashboxContainer Register<TFrom, TTo>(this IDependencyRegistrator registrator, object name = null) where TTo : TFrom
- public static IStashboxContainer RegisterScoped<TFrom, TTo>(this IDependencyRegistrator registrator, object name = null) where TTo : TFrom
- public static IStashboxContainer RegisterScoped(this IDependencyRegistrator registrator, Type typeFrom, Type typeTo, object name = null)
- public static IStashboxContainer RegisterScoped<TTo>(this IDependencyRegistrator registrator, object name = null)
- public static IStashboxContainer RegisterSingleton<TFrom, TTo>(this IDependencyRegistrator registrator, object name = null) where TTo : TFrom
- public static IStashboxContainer RegisterSingleton<TTo>(this IDependencyRegistrator registrator, object name = null)
- public static IStashboxContainer RegisterSingleton(this IDependencyRegistrator registrator, Type typeFrom, Type typeTo, object name = null)
-
public static class DependencyResolverExtensions
- public static object Activate(this IDependencyResolver resolver, Type type, object[] arguments)
- public static TTo Activate<TTo>(this IDependencyResolver resolver, ResolutionBehavior resolutionBehavior, object[] arguments)
- public static bool CanResolve<TFrom>(this IDependencyResolver resolver, object name = null, ResolutionBehavior resolutionBehavior = 3)
- public static TKey Resolve<TKey>(this IDependencyResolver resolver)
- public static TKey Resolve<TKey>(this IDependencyResolver resolver, ResolutionBehavior resolutionBehavior)
- public static TKey Resolve<TKey>(this IDependencyResolver resolver, object[] dependencyOverrides, ResolutionBehavior resolutionBehavior = 3)
- public static TKey Resolve<TKey>(this IDependencyResolver resolver, object name, ResolutionBehavior resolutionBehavior = 3)
- public static TKey Resolve<TKey>(this IDependencyResolver resolver, object name, object[] dependencyOverrides, ResolutionBehavior resolutionBehavior = 3)
- public static object Resolve(this IDependencyResolver resolver, Type typeFrom, ResolutionBehavior resolutionBehavior)
- public static object Resolve(this IDependencyResolver resolver, Type typeFrom, object[] dependencyOverrides, ResolutionBehavior resolutionBehavior = 3)
- public static object Resolve(this IDependencyResolver resolver, Type typeFrom, object name, ResolutionBehavior resolutionBehavior = 3)
- public static IEnumerable<TKey> ResolveAll<TKey>(this IDependencyResolver resolver)
- public static IEnumerable<TKey> ResolveAll<TKey>(this IDependencyResolver resolver, ResolutionBehavior resolutionBehavior)
- public static IEnumerable<TKey> ResolveAll<TKey>(this IDependencyResolver resolver, object name, ResolutionBehavior resolutionBehavior = 3)
- public static IEnumerable<TKey> ResolveAll<TKey>(this IDependencyResolver resolver, object[] dependencyOverrides, ResolutionBehavior resolutionBehavior = 3)
- public static IEnumerable<TKey> ResolveAll<TKey>(this IDependencyResolver resolver, object name, object[] dependencyOverrides, ResolutionBehavior resolutionBehavior = 3)
- public static IEnumerable<object> ResolveAll(this IDependencyResolver resolver, Type typeFrom)
- public static IEnumerable<object> ResolveAll(this IDependencyResolver resolver, Type typeFrom, ResolutionBehavior resolutionBehavior)
- public static IEnumerable<object> ResolveAll(this IDependencyResolver resolver, Type typeFrom, object name, ResolutionBehavior resolutionBehavior = 3)
- public static IEnumerable<object> ResolveAll(this IDependencyResolver resolver, Type typeFrom, object[] dependencyOverrides, ResolutionBehavior resolutionBehavior = 3)
- public static IEnumerable<object> ResolveAll(this IDependencyResolver resolver, Type typeFrom, object name, object[] dependencyOverrides, ResolutionBehavior resolutionBehavior = 3)
- public static TKey ResolveOrDefault<TKey>(this IDependencyResolver resolver, object name, ResolutionBehavior resolutionBehavior = 3)
- public static TKey ResolveOrDefault<TKey>(this IDependencyResolver resolver, object name, object[] dependencyOverrides, ResolutionBehavior resolutionBehavior = 3)
- public static TKey ResolveOrDefault<TKey>(this IDependencyResolver resolver)
- public static TKey ResolveOrDefault<TKey>(this IDependencyResolver resolver, ResolutionBehavior resolutionBehavior)
- public static TKey ResolveOrDefault<TKey>(this IDependencyResolver resolver, object[] dependencyOverrides, ResolutionBehavior resolutionBehavior = 3)
- public static object ResolveOrDefault(this IDependencyResolver resolver, Type typeFrom, ResolutionBehavior resolutionBehavior)
- public static object ResolveOrDefault(this IDependencyResolver resolver, Type typeFrom, object[] dependencyOverrides, ResolutionBehavior resolutionBehavior = 3)
- public static object ResolveOrDefault(this IDependencyResolver resolver, Type typeFrom, object name, ResolutionBehavior resolutionBehavior = 3)
- public static TKey Resolve<TKey>(this IDependencyResolver resolver, bool nullResultAllowed = false, object[] dependencyOverrides = null)
- public static TKey Resolve<TKey>(this IDependencyResolver resolver, object name, bool nullResultAllowed = false, object[] dependencyOverrides = null)
- public static Func<TService> ResolveFactory<TService>(this IDependencyResolver resolver, object name = null, bool nullResultAllowed = false)
- public static Func<T1, TService> ResolveFactory<T1, TService>(this IDependencyResolver resolver, object name = null, bool nullResultAllowed = false)
- public static Func<T1, T2, TService> ResolveFactory<T1, T2, TService>(this IDependencyResolver resolver, object name = null, bool nullResultAllowed = false)
- public static Func<T1, T2, T3, TService> ResolveFactory<T1, T2, T3, TService>(this IDependencyResolver resolver, object name = null, bool nullResultAllowed = false)
- public static Func<T1, T2, T3, T4, TService> ResolveFactory<T1, T2, T3, T4, TService>(this IDependencyResolver resolver, object name = null, bool nullResultAllowed = false)
-
public interface IDependencyRegistrator
-
public interface IDependencyResolver : IServiceProvider, IAsyncDisposable, IDisposable
- object Activate(Type type, ResolutionBehavior resolutionBehavior, object[] arguments)
- object Activate(Type type, object[] arguments)
- TTo BuildUp<TTo>(TTo instance, ResolutionBehavior resolutionBehavior = 3)
- bool CanResolve(Type typeFrom, object name = null, ResolutionBehavior resolutionBehavior = 3)
- IEnumerable<DelegateCacheEntry> GetDelegateCacheEntries()
- TTo BuildUp<TTo>(TTo instance)
- bool CanResolve<TFrom>(object name = null)
- bool CanResolve(Type typeFrom, object name = null)
- object Resolve(Type typeFrom)
- object Resolve(Type typeFrom, object name, object[] dependencyOverrides, ResolutionBehavior resolutionBehavior = 3)
- Delegate ResolveFactory(Type typeFrom, object name = null, ResolutionBehavior resolutionBehavior = 3, Type[] parameterTypes)
- Delegate ResolveFactoryOrDefault(Type typeFrom, object name = null, ResolutionBehavior resolutionBehavior = 3, Type[] parameterTypes)
- object ResolveOrDefault(Type typeFrom)
- object ResolveOrDefault(Type typeFrom, object name, object[] dependencyOverrides, ResolutionBehavior resolutionBehavior = 3)
- object Resolve(Type typeFrom, bool nullResultAllowed = false, object[] dependencyOverrides = null)
- object Resolve(Type typeFrom, object name, bool nullResultAllowed = false, object[] dependencyOverrides = null)
- IEnumerable<TKey> ResolveAll<TKey>(object[] dependencyOverrides = null)
- IEnumerable<object> ResolveAll(Type typeFrom, object[] dependencyOverrides = null)
- Delegate ResolveFactory(Type typeFrom, object name = null, bool nullResultAllowed = false, Type[] parameterTypes)
-
public interface IFuncRegistrator
- IStashboxContainer RegisterFunc<TService>(Func<IDependencyResolver, TService> factory, object name = null)
- IStashboxContainer RegisterFunc<T1, TService>(Func<T1, IDependencyResolver, TService> factory, object name = null)
- IStashboxContainer RegisterFunc<T1, T2, TService>(Func<T1, T2, IDependencyResolver, TService> factory, object name = null)
- IStashboxContainer RegisterFunc<T1, T2, T3, TService>(Func<T1, T2, T3, IDependencyResolver, TService> factory, object name = null)
- IStashboxContainer RegisterFunc<T1, T2, T3, T4, TService>(Func<T1, T2, T3, T4, IDependencyResolver, TService> factory, object name = null)
- IStashboxContainer RegisterFunc<TService>(Func<IDependencyResolver, TService> factory, string name = null)
- IStashboxContainer RegisterFunc<T1, TService>(Func<T1, IDependencyResolver, TService> factory, string name = null)
- IStashboxContainer RegisterFunc<T1, T2, TService>(Func<T1, T2, IDependencyResolver, TService> factory, string name = null)
- IStashboxContainer RegisterFunc<T1, T2, T3, TService>(Func<T1, T2, T3, IDependencyResolver, TService> factory, string name = null)
- IStashboxContainer RegisterFunc<T1, T2, T3, T4, TService>(Func<T1, T2, T3, T4, IDependencyResolver, TService> factory, string name = null)
-
public interface IResolutionScope : IDependencyResolver, IServiceProvider, IAsyncDisposable, IDisposable
-
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
- public IEnumerable<ReadOnlyKeyValue<object, IStashboxContainer>> ChildContainers { get; }
- public object Activate(Type type, ResolutionBehavior resolutionBehavior, object[] arguments)
- public object Activate(Type type, object[] arguments)
- public TTo BuildUp<TTo>(TTo instance, ResolutionBehavior resolutionBehavior = 3)
- public bool CanResolve(Type typeFrom, object name = null, ResolutionBehavior resolutionBehavior = 3)
- public TTo BuildUp<TTo>(TTo instance)
- public bool CanResolve<TFrom>(object name = null)
- public bool CanResolve(Type typeFrom, object name = null)
- public IStashboxContainer CreateChildContainer(Action<ContainerConfigurator> config = null, bool attachToParent = true)
- public IStashboxContainer CreateChildContainer(object identifier, Action<IStashboxContainer> config = null, bool attachToParent = true)
- public IStashboxContainer CreateChildContainer(Action<ContainerConfigurator> config = null)
- public IStashboxContainer GetChildContainer(object identifier)
- public IEnumerable<DelegateCacheEntry> GetDelegateCacheEntries()
- public IStashboxContainer Register<TFrom, TTo>(object name = null) where TTo : TFrom
- public IStashboxContainer Register<TTo>(object name = 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 RegisterFunc<TService>(Func<IDependencyResolver, TService> factory, string name = null)
- public IStashboxContainer RegisterFunc<T1, TService>(Func<T1, IDependencyResolver, TService> factory, string name = null)
- public IStashboxContainer RegisterFunc<T1, T2, TService>(Func<T1, T2, IDependencyResolver, TService> factory, string name = null)
- public IStashboxContainer RegisterFunc<T1, T2, T3, TService>(Func<T1, T2, T3, IDependencyResolver, TService> factory, string name = null)
- public IStashboxContainer RegisterFunc<T1, T2, T3, T4, TService>(Func<T1, T2, T3, T4, IDependencyResolver, TService> factory, string name = null)
- 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 object Resolve(Type typeFrom)
- public object Resolve(Type typeFrom, object name, object[] dependencyOverrides, ResolutionBehavior resolutionBehavior = 3)
- public Delegate ResolveFactory(Type typeFrom, object name = null, ResolutionBehavior resolutionBehavior = 3, Type[] parameterTypes)
- public Delegate ResolveFactoryOrDefault(Type typeFrom, object name = null, ResolutionBehavior resolutionBehavior = 3, Type[] parameterTypes)
- public object ResolveOrDefault(Type typeFrom)
- public object ResolveOrDefault(Type typeFrom, object name, object[] dependencyOverrides, ResolutionBehavior resolutionBehavior = 3)
- public object Resolve(Type typeFrom, bool nullResultAllowed = false, object[] dependencyOverrides = null)
- public object Resolve(Type typeFrom, object name, bool nullResultAllowed = false, object[] dependencyOverrides = null)
- public IEnumerable<TKey> ResolveAll<TKey>(object[] dependencyOverrides = null)
- public IEnumerable<object> ResolveAll(Type typeFrom, object[] dependencyOverrides = null)
- public Delegate ResolveFactory(Type typeFrom, object name = null, bool nullResultAllowed = false, Type[] parameterTypes)
Stashbox.Attributes
Stashbox.Configuration
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, TypeInformation typeInformation)
- protected abstract Expression ApplyLifetime(Func<IResolutionScope, IRequestContext, object> factory, ServiceRegistration serviceRegistration, ResolutionContext resolutionContext, Type resolveType)
-
public abstract class LifetimeDescriptor
-
public static class Lifetimes
Stashbox.Multitenant
-
public interface ITenantDistributor : IAsyncDisposable, IDisposable
-
public sealed class TenantDistributor : ITenantDistributor, IAsyncDisposable, IDisposable
- public IEnumerable<ReadOnlyKeyValue<object, IStashboxContainer>> ChildContainers { get; }
- public IContainerContext ContainerContext { get; }
- public IStashboxContainer RootContainer { get; }
- public object Activate(Type type, ResolutionBehavior resolutionBehavior, object[] arguments)
- public IDependencyResolver BeginScope(object name = null, bool attachToParent = false)
- public TTo BuildUp<TTo>(TTo instance, ResolutionBehavior resolutionBehavior = 3)
- public bool CanResolve(Type typeFrom, object name = null, ResolutionBehavior resolutionBehavior = 3)
- 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, bool attachTenantToRoot = true)
- public IStashboxContainer CreateChildContainer(Action<ContainerConfigurator> config = null, bool attachToParent = true)
- public IStashboxContainer CreateChildContainer(object identifier, Action<IStashboxContainer> config = null, bool attachToParent = true)
- public void ConfigureTenant(object tenantId, Func<IStashboxContainer, IDisposable> tenantConfig)
- public IStashboxContainer GetChildContainer(object identifier)
- 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 name, object[] dependencyOverrides, ResolutionBehavior resolutionBehavior = 3)
- public Delegate ResolveFactory(Type typeFrom, object name = null, ResolutionBehavior resolutionBehavior = 3, Type[] parameterTypes)
- public Delegate ResolveFactoryOrDefault(Type typeFrom, object name = null, ResolutionBehavior resolutionBehavior = 3, Type[] parameterTypes)
- public object ResolveOrDefault(Type typeFrom)
- public object ResolveOrDefault(Type typeFrom, object name, object[] dependencyOverrides, ResolutionBehavior resolutionBehavior = 3)
- 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
Stashbox.Registration.Fluent
Stashbox.Resolution
Stashbox.Utils