API Diff between 5.3.0 and 4.2.0-preview-682
181 Additions
60 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 IDependencyResolver PutInstanceInScope<TFrom>(this IDependencyResolver resolver, TFrom instance, bool withoutDisposalTracking = false, object name = null)
- public static void PutInstanceInScope<TFrom>(this IDependencyResolver resolver, TFrom instance, bool withoutDisposalTracking = false, object name = null)
- public static TKey Resolve<TKey>(this IDependencyResolver resolver)
- public static TKey Resolve<TKey>(this IDependencyResolver resolver, object[] dependencyOverrides)
- public static TKey Resolve<TKey>(this IDependencyResolver resolver, object name)
- public static TKey Resolve<TKey>(this IDependencyResolver resolver, object name, object[] dependencyOverrides)
- public static TKey ResolveOrDefault<TKey>(this IDependencyResolver resolver, object name)
- public static TKey ResolveOrDefault<TKey>(this IDependencyResolver resolver, object name, object[] dependencyOverrides)
- public static TKey ResolveOrDefault<TKey>(this IDependencyResolver resolver)
- public static TKey ResolveOrDefault<TKey>(this IDependencyResolver resolver, object[] dependencyOverrides)
-
public interface IDecoratorRegistrator
-
public interface IDependencyRegistrator
- IStashboxContainer Register<TFrom, TTo>() where TTo : TFrom
- IStashboxContainer Register<TFrom, TTo>(object name) where TTo : TFrom
- IStashboxContainer Register<TFrom>(Type typeTo)
- IStashboxContainer Register(Type typeFrom, Type typeTo)
- IStashboxContainer Register<TTo>()
- IStashboxContainer Register(Type typeTo)
- IStashboxContainer RegisterScoped<TFrom, TTo>() where TTo : TFrom
- IStashboxContainer RegisterScoped<TFrom, TTo>(object name) where TTo : TFrom
- IStashboxContainer RegisterScoped(Type typeFrom, Type typeTo)
- IStashboxContainer RegisterScoped(Type typeFrom, Type typeTo, object name)
- IStashboxContainer RegisterScoped<TTo>()
- IStashboxContainer RegisterScoped<TTo>(object name)
- IStashboxContainer RegisterSingleton<TFrom, TTo>() where TTo : TFrom
- IStashboxContainer RegisterSingleton<TFrom, TTo>(object name) where TTo : TFrom
- IStashboxContainer RegisterSingleton<TTo>()
- IStashboxContainer RegisterSingleton<TTo>(object name)
- IStashboxContainer RegisterSingleton(Type typeFrom, Type typeTo)
- IStashboxContainer RegisterSingleton(Type typeFrom, Type typeTo, object name)
-
public interface IDependencyResolver : IServiceProvider, IAsyncDisposable, IDisposable
- IDependencyResolver PutInstanceInScope(Type typeFrom, object instance, bool withoutDisposalTracking = false, object name = null)
- void PutInstanceInScope(Type typeFrom, object instance, bool withoutDisposalTracking = false, object name = null)
- object Resolve(Type typeFrom)
- object Resolve(Type typeFrom, object[] dependencyOverrides)
- object Resolve(Type typeFrom, object name)
- object Resolve(Type typeFrom, object name, object[] dependencyOverrides)
- IEnumerable<TKey> ResolveAll<TKey>()
- IEnumerable<object> ResolveAll(Type typeFrom)
- Delegate ResolveFactory(Type typeFrom, object name = null, bool nullResultAllowed = false, Type[] parameterTypes)
- Delegate ResolveFactory(Type typeFrom, object name = null, Type[] parameterTypes)
- Delegate ResolveFactoryOrDefault(Type typeFrom, object name = null, Type[] parameterTypes)
- object ResolveOrDefault(Type typeFrom)
- object ResolveOrDefault(Type typeFrom, object[] dependencyOverrides)
- object ResolveOrDefault(Type typeFrom, object name)
- object ResolveOrDefault(Type typeFrom, object name, object[] dependencyOverrides)
-
public interface IFuncRegistrator
- 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)
- 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)
-
public interface IResolutionScope : IDependencyResolver, IServiceProvider, IAsyncDisposable, IDisposable
- object AddRequestContextAwareDisposableTracking(object disposable, IRequestContext requestContext)
- object GetOrAddScopedObject(int key, Func<IResolutionScope, object> factory, Type requestedType, bool validateLifetimeFromRootScope = false)
- object GetOrAddScopedObject(int key, Func<IResolutionScope, IRequestContext, object> factory, IRequestContext requestContext, Type serviceType)
-
public sealed class Metadata<TService, TMeta>
- public readonly TMeta Data
- public readonly TService Service
- public Metadata(TService service, TMeta data)
-
public struct ReadOnlyKeyValue<TKey, TValue>
-
public sealed class StashboxContainer : IStashboxContainer, IDependencyRegistrator, IDependencyResolver, IServiceProvider, IAsyncDisposable, IDisposable, IDependencyReMapper, IDependencyCollectionRegistrator, IDecoratorRegistrator, IFuncRegistrator
- public IDependencyResolver PutInstanceInScope(Type typeFrom, object instance, bool withoutDisposalTracking = false, object name = null)
- public void PutInstanceInScope(Type typeFrom, object instance, bool withoutDisposalTracking = false, object name = null)
- public IStashboxContainer Register<TFrom, TTo>() where TTo : TFrom
- public IStashboxContainer Register<TFrom, TTo>(object name) where TTo : TFrom
- public IStashboxContainer Register<TFrom>(Type typeTo)
- public IStashboxContainer Register(Type typeFrom, Type typeTo)
- public IStashboxContainer Register<TTo>()
- public IStashboxContainer Register(Type typeTo)
- public IStashboxContainer RegisterDecorator(Type typeFrom, Type typeTo)
- public IStashboxContainer RegisterDecorator<TFrom, TTo>() where TTo : TFrom
- public IStashboxContainer RegisterDecorator(Type typeTo)
- public IStashboxContainer RegisterDecorator<TTo>()
- public IStashboxContainer RegisterDecorator<TFrom>(Type typeTo)
- 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 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 RegisterScoped<TFrom, TTo>() where TTo : TFrom
- public IStashboxContainer RegisterScoped<TFrom, TTo>(object name) where TTo : TFrom
- public IStashboxContainer RegisterScoped(Type typeFrom, Type typeTo)
- public IStashboxContainer RegisterScoped(Type typeFrom, Type typeTo, object name)
- public IStashboxContainer RegisterScoped<TTo>()
- public IStashboxContainer RegisterScoped<TTo>(object name)
- public IStashboxContainer RegisterSingleton<TFrom, TTo>() where TTo : TFrom
- public IStashboxContainer RegisterSingleton<TFrom, TTo>(object name) where TTo : TFrom
- public IStashboxContainer RegisterSingleton<TTo>()
- public IStashboxContainer RegisterSingleton<TTo>(object name)
- public IStashboxContainer RegisterSingleton(Type typeFrom, Type typeTo)
- public IStashboxContainer RegisterSingleton(Type typeFrom, Type typeTo, object name)
- 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<object> ResolveAll(Type typeFrom)
- public Delegate ResolveFactory(Type typeFrom, object name = null, bool nullResultAllowed = false, Type[] parameterTypes)
- 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)
Stashbox.Configuration
Stashbox.Lifetime
Stashbox.Registration
Stashbox.Registration.Fluent
Stashbox.Resolution
Stashbox.Utils
System.Linq.Expressions
-
public static class ExpressionExtensions
- public static ServiceContext AsServiceContext(this Expression expression, ServiceRegistration serviceRegistration = null)
- public static Func<IResolutionScope, object> CompileDelegate(this Expression expression, ResolutionContext resolutionContext, ContainerConfiguration containerConfiguration)
- public static Func<IResolutionScope, IRequestContext, object> CompileDelegate(this Expression expression, ResolutionContext resolutionContext, ContainerConfiguration containerConfiguration)
- public static Func<IResolutionScope, Delegate> CompileDynamicDelegate(this Expression expression, ResolutionContext resolutionContext, ContainerConfiguration containerConfiguration)
- public static Func<IResolutionScope, IRequestContext, Delegate> CompileDynamicDelegate(this Expression expression, ResolutionContext resolutionContext, ContainerConfiguration containerConfiguration)