API Diff between 5.2.0-preview-743 and 3.6.4-preview-652
127 Additions
61 Removals
Stashbox
-
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, object[] dependencyOverrides = null)
- public static TKey Resolve<TKey>(this IDependencyResolver resolver, object name, object[] dependencyOverrides = null)
- public static TKey ResolveOrDefault<TKey>(this IDependencyResolver resolver, object name, object[] dependencyOverrides = null)
- public static TKey ResolveOrDefault<TKey>(this IDependencyResolver resolver, object[] dependencyOverrides = null)
-
public interface IDependencyResolver : IServiceProvider, IDisposable
- IDependencyResolver PutInstanceInScope(Type typeFrom, object instance, bool withoutDisposalTracking = false, object name = null)
- object Resolve(Type typeFrom)
- bool CanResolve<TFrom>(object name = null)
- bool CanResolve(Type typeFrom, object name = null)
- ValueTask InvokeAsyncInitializers(CancellationToken token = default)
- void PutInstanceInScope(Type typeFrom, object instance, bool withoutDisposalTracking = false, object name = null)
- object Resolve(Type typeFrom, object[] dependencyOverrides = null)
- object Resolve(Type typeFrom, object name, object[] dependencyOverrides = null)
- 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[] dependencyOverrides = null)
- object ResolveOrDefault(Type typeFrom, object name, object[] dependencyOverrides = null)
-
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, IDisposable
- TDisposable AddDisposableTracking<TDisposable>(TDisposable disposable)
- TService AddWithFinalizer<TService>(TService finalizable, Action<TService> finalizer)
- object AddDisposableTracking(object disposable)
- object AddRequestContextAwareDisposableTracking(object disposable, IRequestContext requestContext)
- object AddWithAsyncInitializer(object initializable, Func<object, IDependencyResolver, CancellationToken, Task> initializer)
- object AddWithFinalizer(object finalizable, Action<object> finalizer)
- 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 interface IStashboxContainer : IDependencyRegistrator, IDependencyResolver, IServiceProvider, IDisposable, IDependencyReMapper, IDependencyCollectionRegistrator, IDecoratorRegistrator, IFuncRegistrator
-
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, IDisposable, IDependencyReMapper, IDependencyCollectionRegistrator, IDecoratorRegistrator, IFuncRegistrator
- public ValueTask InvokeAsyncInitializers(CancellationToken token = default)
- 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 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 object Resolve(Type typeFrom)
- public object Resolve(Type typeFrom, object[] dependencyOverrides = null)
- public object Resolve(Type typeFrom, object name, object[] dependencyOverrides = null)
- 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, object[] dependencyOverrides = null)
- public object ResolveOrDefault(Type typeFrom, object name, object[] dependencyOverrides = null)
Stashbox.Configuration
Stashbox.Lifetime
Stashbox.Registration
Stashbox.Registration.Fluent
-
public class BaseFluentConfigurator<TConfigurator> : RegistrationConfiguration where TConfigurator : BaseFluentConfigurator<TConfigurator>
-
public class DecoratorConfigurator<TService, TImplementation> : BaseDecoratorConfigurator<DecoratorConfigurator<TService, TImplementation>>, IFluentCompositor<TImplementation, DecoratorConfigurator<TService, TImplementation>> where TImplementation : TService
-
public class FluentServiceConfigurator<TConfigurator> : BaseFluentConfigurator<TConfigurator>, IFluentCompositor<TConfigurator> where TConfigurator : FluentServiceConfigurator<TConfigurator>
-
public class FluentServiceConfigurator<TService, TImplementation, TConfigurator> : FluentServiceConfigurator<TConfigurator>, IFluentCompositor<TImplementation, TConfigurator> where TImplementation : TService where TConfigurator : FluentServiceConfigurator<TService, TImplementation, TConfigurator>
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)