API Diff between 5.10.1-preview-812 and 3.1.0-preview-529
524 Additions
201 Removals
Stashbox
-
public static class CollectionRegistratorExtensions
- public static IStashboxContainer RegisterAssemblies(this IDependencyCollectionRegistrator registrator, IEnumerable<Assembly> assemblies, Func<Type, bool> selector = null, Action<RegistrationConfigurator> configurator = null)
- public static IStashboxContainer RegisterAssembly(this IDependencyCollectionRegistrator registrator, Assembly assembly, Func<Type, bool> selector = null, Action<RegistrationConfigurator> configurator = null)
- public static IStashboxContainer RegisterAssemblyContaining<TFrom>(this IDependencyCollectionRegistrator registrator, Func<Type, bool> selector = null, Action<RegistrationConfigurator> configurator = null)
- public static IStashboxContainer RegisterAssemblyContaining(this IDependencyCollectionRegistrator registrator, Type typeFrom, Func<Type, bool> selector = null, Action<RegistrationConfigurator> configurator = null)
- public static IStashboxContainer RegisterAssemblies(this IDependencyCollectionRegistrator registrator, IEnumerable<Assembly> assemblies, Func<Type, bool> selector = null, Func<Type, Type, bool> serviceTypeSelector = null, bool registerSelf = true, Action<RegistrationConfigurator> configurator = null)
- public static IStashboxContainer RegisterAssembly(this IDependencyCollectionRegistrator registrator, Assembly assembly, Func<Type, bool> selector = null, Func<Type, Type, bool> serviceTypeSelector = null, bool registerSelf = true, Action<RegistrationConfigurator> configurator = null)
- public static IStashboxContainer RegisterAssemblyContaining<TFrom>(this IDependencyCollectionRegistrator registrator, Func<Type, bool> selector = null, Func<Type, Type, bool> serviceTypeSelector = null, bool registerSelf = true, Action<RegistrationConfigurator> configurator = null)
- public static IStashboxContainer RegisterAssemblyContaining(this IDependencyCollectionRegistrator registrator, Type typeFrom, Func<Type, bool> selector = null, Func<Type, Type, bool> serviceTypeSelector = null, bool registerSelf = true, Action<RegistrationConfigurator> configurator = null)
-
public class ContainerContext : IContainerContext
-
public static class DecoratorRegistratorExtensions
-
public static class DependencyRegistratorExtensions
- public static IStashboxContainer Register<TFrom, TTo>(this IDependencyRegistrator registrator, object name = null) where TTo : TFrom
- public static IStashboxContainer RegisterInstance(this IDependencyRegistrator registrator, object instance, object name = null, bool withoutDisposalTracking = false)
- public static IStashboxContainer RegisterInstancesAs<TFrom>(this IDependencyRegistrator registrator, IEnumerable<TFrom> instances, bool withoutDisposalTracking = false)
- public static IStashboxContainer RegisterInstancesAs<TFrom>(this IDependencyRegistrator registrator, TFrom[] instances)
- 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 IStashboxContainer WireUp(this IDependencyRegistrator registrator, object instance, object name = null, bool withoutDisposalTracking = false)
- public static IStashboxContainer RegisterInstances<TFrom>(this IDependencyRegistrator registrator, IEnumerable<TFrom> instances, bool withoutDisposalTracking = false)
- public static IStashboxContainer RegisterInstances<TFrom>(this IDependencyRegistrator registrator, TFrom[] instances)
-
public static class DependencyReMapperExtensions
-
public static class DependencyResolverExtensions
- public static IDependencyResolver PutInstanceInScope<TFrom>(this IDependencyResolver resolver, TFrom instance, bool withoutDisposalTracking = false, object name = null)
- 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 static TTo Activate<TTo>(this IDependencyResolver resolver, ResolutionBehavior resolutionBehavior, object[] arguments)
- 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, 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 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 interface IContainerConfigurator
-
public interface IContainerContext
-
public interface IDecoratorRegistrator
-
public interface IDependencyCollectionRegistrator
- IStashboxContainer RegisterTypes(IEnumerable<Type> types, Func<Type, bool> selector = null, Action<RegistrationConfigurator> configurator = null)
- IStashboxContainer RegisterTypes(IEnumerable<Type> types, Func<Type, bool> selector = null, Func<Type, Type, bool> serviceTypeSelector = null, bool registerSelf = true, Action<RegistrationConfigurator> configurator = null)
-
public interface IDependencyRegistrator
- IStashboxContainer Register<TFrom, TTo>(Action<RegistrationConfigurator<TTo>> configurator = null) where TTo : TFrom
- IStashboxContainer Register<TFrom>(Type typeTo, Action<RegistrationConfigurator<TFrom>> configurator = null)
- IStashboxContainer Register<TFrom, TTo>(Action<RegistrationConfigurator<TFrom, TTo>> configurator) where TTo : TFrom
- IStashboxContainer Register<TFrom, TTo>(object name = null) where TTo : TFrom
- IStashboxContainer Register<TFrom>(Type typeTo, Action<RegistrationConfigurator<TFrom, TFrom>> configurator = null)
- IStashboxContainer Register<TTo>(Action<RegistrationConfigurator<TTo>> configurator = null)
- IStashboxContainer Register<TTo>(Action<RegistrationConfigurator<TTo, TTo>> configurator)
- IStashboxContainer Register<TTo>(object name = null)
- IStashboxContainer RegisterInstance(Type serviceType, object instance, object name = null, bool withoutDisposalTracking = false)
- IStashboxContainer RegisterInstanceAs<TFrom>(TFrom instance, object name = null, bool withoutDisposalTracking = false, Action<TFrom> finalizerDelegate = null)
- IStashboxContainer WireUp(Type serviceType, object instance, object name = null, bool withoutDisposalTracking = false)
- IStashboxContainer WireUpAs<TFrom>(TFrom instance, object name = null, bool withoutDisposalTracking = false, Action<TFrom> finalizerDelegate = null)
- IStashboxContainer RegisterInstance<TInstance>(TInstance instance, object name = null, bool withoutDisposalTracking = false, Action<TInstance> finalizerDelegate = null)
- IStashboxContainer RegisterInstance(object instance, Type serviceType, object name = null, bool withoutDisposalTracking = false)
- IStashboxContainer RegisterScoped<TFrom, TTo>(object name = null) where TTo : TFrom
- IStashboxContainer RegisterScoped(Type typeFrom, Type typeTo, object name = null)
- IStashboxContainer RegisterScoped<TTo>(object name = null)
- IStashboxContainer RegisterSingleton<TFrom, TTo>(object name = null) where TTo : TFrom
- IStashboxContainer RegisterSingleton<TTo>(object name = null)
- IStashboxContainer RegisterSingleton(Type typeFrom, Type typeTo, object name = null)
- IStashboxContainer WireUp<TInstance>(TInstance instance, object name = null, bool withoutDisposalTracking = false, Action<TInstance> finalizerDelegate = null)
- IStashboxContainer WireUp(object instance, Type serviceType, object name = null, bool withoutDisposalTracking = false)
-
public interface IDependencyReMapper
- IStashboxContainer ReMap<TFrom, TTo>(Action<RegistrationConfigurator<TTo>> configurator = null) where TTo : TFrom
- IStashboxContainer ReMap<TFrom>(Type typeTo, Action<RegistrationConfigurator<TFrom>> configurator = null)
- IStashboxContainer ReMap<TFrom, TTo>(Action<RegistrationConfigurator<TFrom, TTo>> configurator = null) where TTo : TFrom
- IStashboxContainer ReMap<TFrom>(Type typeTo, Action<RegistrationConfigurator<TFrom, TFrom>> configurator = null)
- IStashboxContainer ReMap<TTo>(Action<RegistrationConfigurator<TTo>> configurator = null)
- IStashboxContainer ReMap<TTo>(Action<RegistrationConfigurator<TTo, TTo>> configurator = null)
- IStashboxContainer ReMapDecorator<TFrom, TTo>(Action<DecoratorConfigurator<TFrom, TTo>> configurator = null) where TTo : TFrom
- IStashboxContainer ReMapDecorator<TFrom>(Type typeTo, Action<DecoratorConfigurator<TFrom, TFrom>> configurator = null)
-
public interface IDependencyResolver : IServiceProvider, IAsyncDisposable, IDisposable
- object Activate(Type type, ResolutionBehavior resolutionBehavior, object[] arguments)
- TTo BuildUp<TTo>(TTo instance)
- IDependencyResolver PutInstanceInScope(Type typeFrom, object instance, bool withoutDisposalTracking = false, object name = null)
- 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)
- TTo BuildUp<TTo>(TTo instance, ResolutionBehavior resolutionBehavior = 3)
- bool CanResolve<TFrom>(object name = null, ResolutionBehavior resolutionBehavior = 3)
- bool CanResolve(Type typeFrom, object name = null, ResolutionBehavior resolutionBehavior = 3)
- IEnumerable<DelegateCacheEntry> GetDelegateCacheEntries()
- ValueTask InvokeAsyncInitializers(CancellationToken token = default)
- void PutInstanceInScope(Type typeFrom, object instance, bool withoutDisposalTracking = false, object name = null)
- object Resolve(Type typeFrom)
- object Resolve(Type typeFrom, ResolutionBehavior resolutionBehavior)
- object Resolve(Type typeFrom, object[] dependencyOverrides, ResolutionBehavior resolutionBehavior = 3)
- object Resolve(Type typeFrom, object name, ResolutionBehavior resolutionBehavior = 3)
- object Resolve(Type typeFrom, object name, object[] dependencyOverrides, ResolutionBehavior resolutionBehavior = 3)
- IEnumerable<TKey> ResolveAll<TKey>(ResolutionBehavior resolutionBehavior = 3)
- IEnumerable<TKey> ResolveAll<TKey>(object name, ResolutionBehavior resolutionBehavior = 3)
- IEnumerable<TKey> ResolveAll<TKey>(object[] dependencyOverrides, ResolutionBehavior resolutionBehavior = 3)
- IEnumerable<TKey> ResolveAll<TKey>(object name, object[] dependencyOverrides, ResolutionBehavior resolutionBehavior = 3)
- IEnumerable<object> ResolveAll(Type typeFrom, ResolutionBehavior resolutionBehavior = 3)
- IEnumerable<object> ResolveAll(Type typeFrom, object name, ResolutionBehavior resolutionBehavior = 3)
- IEnumerable<object> ResolveAll(Type typeFrom, object[] dependencyOverrides, ResolutionBehavior resolutionBehavior = 3)
- IEnumerable<object> ResolveAll(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, ResolutionBehavior resolutionBehavior)
- object ResolveOrDefault(Type typeFrom, object[] dependencyOverrides, ResolutionBehavior resolutionBehavior = 3)
- object ResolveOrDefault(Type typeFrom, object name, ResolutionBehavior resolutionBehavior = 3)
- object ResolveOrDefault(Type typeFrom, object name, object[] dependencyOverrides, ResolutionBehavior resolutionBehavior = 3)
-
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
- bool HasScopedInstances { get; }
- TDisposable AddDisposableTracking<TDisposable>(TDisposable disposable) where TDisposable : IDisposable
- void AddScopedInstance(Type key, object value, object name = null)
- TService AddWithFinalizer<TService>(TService finalizable, Action<TService> finalizer)
- void CheckRuntimeCircularDependencyBarrier(int key, Type type)
- List<object> GetActiveScopeNames()
- object GetOrAddScopedItem(int key, object sync, Func<IResolutionScope, object> factory)
- object GetScopedInstanceOrDefault(Type key, object name = null)
- 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)
- IEnumerable<object> GetActiveScopeNames()
- object GetOrAddScopedObject(int key, Func<IResolutionScope, IRequestContext, object> factory, IRequestContext requestContext, Type serviceType)
- void ResetRuntimeCircularDependencyBarrier(int key)
-
public interface IStashboxContainer : IDependencyRegistrator, IDependencyResolver, IServiceProvider, IAsyncDisposable, 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, IAsyncDisposable, IDisposable, IDependencyReMapper, IDependencyCollectionRegistrator, IDecoratorRegistrator, IFuncRegistrator
- public IEnumerable<ReadOnlyKeyValue<object, IStashboxContainer>> ChildContainers { get; }
- public IStashboxContainer ParentContainer { get; }
- public IResolutionScope RootScope { get; }
- public StashboxContainer(Action<IContainerConfigurator> config = null)
- public StashboxContainer(Action<ContainerConfigurator> config = null)
- public object Activate(Type type, ResolutionBehavior resolutionBehavior, object[] arguments)
- public TTo BuildUp<TTo>(TTo instance)
- public bool CanResolve<TFrom>(object name = null)
- public bool CanResolve(Type typeFrom, object name = null)
- public TTo BuildUp<TTo>(TTo instance, ResolutionBehavior resolutionBehavior = 3)
- public bool CanResolve<TFrom>(object name = null, ResolutionBehavior resolutionBehavior = 3)
- public bool CanResolve(Type typeFrom, object name = null, ResolutionBehavior resolutionBehavior = 3)
- public void Configure(Action<IContainerConfigurator> config)
- public IStashboxContainer CreateChildContainer()
- public void Configure(Action<ContainerConfigurator> config)
- public IStashboxContainer CreateChildContainer(Action<ContainerConfigurator> config = null, bool attachToParent = true)
- public IStashboxContainer CreateChildContainer(object identifier, Action<IStashboxContainer> config = null, bool attachToParent = true)
- public IEnumerable<KeyValuePair<Type, IServiceRegistration>> GetRegistrationMappings()
- public ValueTask DisposeAsync()
- public IStashboxContainer GetChildContainer(object identifier)
- public IEnumerable<DelegateCacheEntry> GetDelegateCacheEntries()
- public IEnumerable<RegistrationDiagnosticsInfo> GetRegistrationDiagnostics()
- public IEnumerable<KeyValuePair<Type, ServiceRegistration>> GetRegistrationMappings()
- public ValueTask InvokeAsyncInitializers(CancellationToken token = default)
- public IDependencyResolver PutInstanceInScope(Type typeFrom, object instance, bool withoutDisposalTracking = false, object name = null)
- public IStashboxContainer Register<TFrom, TTo>(Action<RegistrationConfigurator<TTo>> configurator = null) where TTo : TFrom
- public IStashboxContainer Register<TFrom>(Type typeTo, Action<RegistrationConfigurator<TFrom>> configurator = 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<TTo>(Action<RegistrationConfigurator<TTo>> configurator = null)
- public IStashboxContainer Register<TTo>(Action<RegistrationConfigurator<TTo, TTo>> configurator)
- public IStashboxContainer Register<TTo>(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 RegisterInstance(Type serviceType, object instance, object name = null, bool withoutDisposalTracking = false)
- public IStashboxContainer RegisterInstanceAs<TFrom>(TFrom instance, object name = null, bool withoutDisposalTracking = false, Action<TFrom> finalizerDelegate = 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 IStashboxContainer RegisterTypes(IEnumerable<Type> types, Func<Type, bool> selector = null, Action<RegistrationConfigurator> configurator = 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 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 ReMap<TFrom, TTo>(Action<RegistrationConfigurator<TTo>> configurator = null) where TTo : TFrom
- public IStashboxContainer ReMap<TFrom>(Type typeTo, Action<RegistrationConfigurator<TFrom>> 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<TTo>(Action<RegistrationConfigurator<TTo>> configurator = null)
- public IStashboxContainer ReMap<TTo>(Action<RegistrationConfigurator<TTo, TTo>> configurator = null)
- 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)
- 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, ResolutionBehavior resolutionBehavior)
- public object Resolve(Type typeFrom, object[] dependencyOverrides, ResolutionBehavior resolutionBehavior = 3)
- public object Resolve(Type typeFrom, object name, ResolutionBehavior resolutionBehavior = 3)
- public object Resolve(Type typeFrom, object name, object[] dependencyOverrides, ResolutionBehavior resolutionBehavior = 3)
- public IEnumerable<TKey> ResolveAll<TKey>(ResolutionBehavior resolutionBehavior = 3)
- public IEnumerable<TKey> ResolveAll<TKey>(object name, ResolutionBehavior resolutionBehavior = 3)
- public IEnumerable<TKey> ResolveAll<TKey>(object[] dependencyOverrides, ResolutionBehavior resolutionBehavior = 3)
- public IEnumerable<TKey> ResolveAll<TKey>(object name, object[] dependencyOverrides, ResolutionBehavior resolutionBehavior = 3)
- public IEnumerable<object> ResolveAll(Type typeFrom, ResolutionBehavior resolutionBehavior = 3)
- public IEnumerable<object> ResolveAll(Type typeFrom, object name, ResolutionBehavior resolutionBehavior = 3)
- public IEnumerable<object> ResolveAll(Type typeFrom, object[] dependencyOverrides, ResolutionBehavior resolutionBehavior = 3)
- public IEnumerable<object> ResolveAll(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, ResolutionBehavior resolutionBehavior)
- public object ResolveOrDefault(Type typeFrom, object[] dependencyOverrides, ResolutionBehavior resolutionBehavior = 3)
- public object ResolveOrDefault(Type typeFrom, object name, ResolutionBehavior resolutionBehavior = 3)
- public object ResolveOrDefault(Type typeFrom, object name, object[] dependencyOverrides, ResolutionBehavior resolutionBehavior = 3)
- public IStashboxContainer WireUp(Type serviceType, object instance, object name = null, bool withoutDisposalTracking = false)
- public IStashboxContainer WireUpAs<TFrom>(TFrom instance, object name = null, bool withoutDisposalTracking = false, Action<TFrom> finalizerDelegate = null)
- 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.Attributes
Stashbox.BuildUp
Stashbox.Configuration
Stashbox.Entity
Stashbox.Exceptions
Stashbox.Lifetime
Stashbox.Multitenant
-
public interface ITenantDistributor : IStashboxContainer, IDependencyRegistrator, IDependencyResolver, IServiceProvider, IAsyncDisposable, IDisposable, IDependencyReMapper, IDependencyCollectionRegistrator, IDecoratorRegistrator, IFuncRegistrator
-
public sealed class TenantDistributor : ITenantDistributor, IStashboxContainer, IDependencyRegistrator, IDependencyResolver, IServiceProvider, IAsyncDisposable, IDisposable, IDependencyReMapper, IDependencyCollectionRegistrator, IDecoratorRegistrator, IFuncRegistrator
- public IEnumerable<ReadOnlyKeyValue<object, IStashboxContainer>> ChildContainers { get; }
- public IContainerContext ContainerContext { get; }
- public TenantDistributor(IStashboxContainer rootContainer = null)
- public object Activate(Type type, object[] arguments)
- 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<TFrom>(object name = null, 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 Dispose()
- public ValueTask DisposeAsync()
- 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 IDependencyResolver GetTenant(object tenantId)
- 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, ResolutionBehavior resolutionBehavior)
- public object Resolve(Type typeFrom, object[] dependencyOverrides, ResolutionBehavior resolutionBehavior = 3)
- public object Resolve(Type typeFrom, object name, ResolutionBehavior resolutionBehavior = 3)
- public object Resolve(Type typeFrom, object name, object[] dependencyOverrides, ResolutionBehavior resolutionBehavior = 3)
- public IEnumerable<TKey> ResolveAll<TKey>(ResolutionBehavior resolutionBehavior = 3)
- public IEnumerable<TKey> ResolveAll<TKey>(object name, ResolutionBehavior resolutionBehavior = 3)
- public IEnumerable<TKey> ResolveAll<TKey>(object[] dependencyOverrides, ResolutionBehavior resolutionBehavior = 3)
- public IEnumerable<TKey> ResolveAll<TKey>(object name, object[] dependencyOverrides, ResolutionBehavior resolutionBehavior = 3)
- public IEnumerable<object> ResolveAll(Type typeFrom, ResolutionBehavior resolutionBehavior = 3)
- public IEnumerable<object> ResolveAll(Type typeFrom, object name, ResolutionBehavior resolutionBehavior = 3)
- public IEnumerable<object> ResolveAll(Type typeFrom, object[] dependencyOverrides, ResolutionBehavior resolutionBehavior = 3)
- public IEnumerable<object> ResolveAll(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, ResolutionBehavior resolutionBehavior)
- public object ResolveOrDefault(Type typeFrom, object[] dependencyOverrides, ResolutionBehavior resolutionBehavior = 3)
- public object ResolveOrDefault(Type typeFrom, object name, ResolutionBehavior resolutionBehavior = 3)
- public object ResolveOrDefault(Type typeFrom, object name, object[] dependencyOverrides, ResolutionBehavior resolutionBehavior = 3)
- public void Validate()
- 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
-
public class InstanceOptions
-
public interface IRegistrationRepository
- void AddOrUpdateRegistration(IServiceRegistration registration, Type serviceType, bool remap, bool replace)
- bool ContainsRegistration(Type type, object name)
- IEnumerable<KeyValuePair<Type, IServiceRegistration>> GetRegistrationMappings()
- IServiceRegistration GetRegistrationOrDefault(Type type, ResolutionContext resolutionContext, object name = null)
- IServiceRegistration GetRegistrationOrDefault(TypeInformation typeInfo, ResolutionContext resolutionContext)
- IEnumerable<IServiceRegistration> GetRegistrationsOrDefault(TypeInformation typeInfo, ResolutionContext resolutionContext)
- bool AddOrReMapRegistration(ServiceRegistration registration, Type serviceType)
- bool AddOrUpdateRegistration(ServiceRegistration registration, Type serviceType)
- bool ContainsRegistration(Type type, object name, bool includeOpenGenerics = true)
- IEnumerable<KeyValuePair<Type, ServiceRegistration>> GetRegistrationMappings()
- ServiceRegistration GetRegistrationOrDefault(TypeInformation typeInfo, ResolutionContext resolutionContext)
- IEnumerable<ServiceRegistration> GetRegistrationsOrDefault(TypeInformation typeInfo, ResolutionContext resolutionContext)
-
public interface IServiceRegistration
-
public class RegistrationContext
-
public class OpenGenericRegistration : ServiceRegistration
-
public struct RegistrationDiagnosticsInfo
-
public enum RegistrationOption
-
public class ServiceRegistration
Stashbox.Registration.Fluent
-
public class BaseDecoratorConfigurator<TConfigurator> : BaseFluentConfigurator<TConfigurator> where TConfigurator : BaseDecoratorConfigurator<TConfigurator>
-
public class BaseFluentConfigurator<TConfigurator> : ServiceRegistration where TConfigurator : BaseFluentConfigurator<TConfigurator>
-
public class DecoratorConfigurator : BaseDecoratorConfigurator<DecoratorConfigurator>
- public DecoratorConfigurator WithFactory(Func<IDependencyResolver, object> factory, bool isCompiledLambda = false)
- public DecoratorConfigurator WithFactory(Func<object> factory, bool isCompiledLambda = false)
- public DecoratorConfigurator WithFactory<T1>(Func<T1, object> factory, bool isCompiledLambda = false)
- public DecoratorConfigurator WithFactory<T1, T2>(Func<T1, T2, object> factory, bool isCompiledLambda = false)
- public DecoratorConfigurator WithFactory<T1, T2, T3>(Func<T1, T2, T3, object> factory, bool isCompiledLambda = false)
- public DecoratorConfigurator WithFactory<T1, T2, T3, T4>(Func<T1, T2, T3, T4, object> factory, bool isCompiledLambda = false)
- public DecoratorConfigurator WithFactory<T1, T2, T3, T4, T5>(Func<T1, T2, T3, T4, T5, object> factory, bool isCompiledLambda = false)
-
public class DecoratorConfigurator<TService, TImplementation> : BaseDecoratorConfigurator<DecoratorConfigurator<TService, TImplementation>> where TImplementation : TService
- public DecoratorConfigurator<TService, TImplementation> WithAsyncInitializer(Func<TImplementation, IDependencyResolver, CancellationToken, Task> initializer)
- public DecoratorConfigurator<TService, TImplementation> WithDependencyBinding<TResult>(Expression<Func<TImplementation, TResult>> expression, object dependencyName = null)
- public DecoratorConfigurator<TService, TImplementation> WithFactory(Func<TImplementation> factory, bool isCompiledLambda = false)
- public DecoratorConfigurator<TService, TImplementation> WithFactory(Func<IDependencyResolver, TImplementation> factory, bool isCompiledLambda = false)
- public DecoratorConfigurator<TService, TImplementation> WithFactory<T1>(Func<T1, TImplementation> factory, bool isCompiledLambda = false)
- public DecoratorConfigurator<TService, TImplementation> WithFactory<T1, T2>(Func<T1, T2, TImplementation> factory, bool isCompiledLambda = false)
- public DecoratorConfigurator<TService, TImplementation> WithFactory<T1, T2, T3>(Func<T1, T2, T3, TImplementation> factory, bool isCompiledLambda = false)
- public DecoratorConfigurator<TService, TImplementation> WithFactory<T1, T2, T3, T4>(Func<T1, T2, T3, T4, TImplementation> factory, bool isCompiledLambda = false)
- public DecoratorConfigurator<TService, TImplementation> WithFactory<T1, T2, T3, T4, T5>(Func<T1, T2, T3, T4, T5, TImplementation> factory, bool isCompiledLambda = false)
- public DecoratorConfigurator<TService, TImplementation> WithFinalizer(Action<TImplementation> finalizer)
- public DecoratorConfigurator<TService, TImplementation> WithInitializer(Action<TImplementation, IDependencyResolver> initializer)
-
public class FluentServiceConfigurator<TConfigurator> : BaseFluentConfigurator<TConfigurator> where TConfigurator : FluentServiceConfigurator<TConfigurator>
- public TConfigurator AsImplementedTypes()
- public TConfigurator AsServiceAlso(Type serviceType)
- public TConfigurator InNamedScope(object scopeName)
- public TConfigurator InScopeDefinedBy(Type type)
- public TConfigurator InScopeDefinedBy<TScopeDefiner>()
- public TConfigurator When(Func<TypeInformation, bool> resolutionCondition)
- public TConfigurator WhenDependantIs<TTarget>()
- public TConfigurator WhenDependantIs(Type targetType)
- public TConfigurator WhenHas<TAttribute>() where TAttribute : Attribute
- public TConfigurator WhenHas(Type attributeType)
- public TConfigurator WithDynamicResolution()
- public TConfigurator WithInstance(object instance, bool wireUp = false)
- public TConfigurator WithLifetime(ILifetime lifetime)
- public TConfigurator WithFactory<T1>(Func<T1, object> factory, bool isCompiledLambda = false)
- public TConfigurator WithFactory<T1, T2>(Func<T1, T2, object> factory, bool isCompiledLambda = false)
- public TConfigurator WithFactory<T1, T2, T3>(Func<T1, T2, T3, object> factory, bool isCompiledLambda = false)
- public TConfigurator WithFactory<T1, T2, T3, T4>(Func<T1, T2, T3, T4, object> factory, bool isCompiledLambda = false)
- public TConfigurator WithFactory<T1, T2, T3, T4, T5>(Func<T1, T2, T3, T4, T5, object> factory, bool isCompiledLambda = false)
- public TConfigurator WithMetadata(object metadata)
- public TConfigurator WithPerResolutionRequestLifetime()
- public TConfigurator WithScopedLifetime()
- public TConfigurator WithSingletonLifetime()
-
public class FluentServiceConfigurator<TService, TConfigurator> : FluentServiceConfigurator<TConfigurator>, IFluentServiceConfigurator<TService, TConfigurator>, IFluentServiceConfigurator<TConfigurator>, IBaseFluentConfigurator<TConfigurator> where TConfigurator : FluentServiceConfigurator<TService, TConfigurator>
-
public interface IBaseFluentConfigurator<TFluentConfigurator> where TFluentConfigurator : IBaseFluentConfigurator<TFluentConfigurator>
-
public interface IFluentServiceConfigurator<TConfigurator> : IBaseFluentConfigurator<TConfigurator> where TConfigurator : IFluentServiceConfigurator<TConfigurator>
-
public interface IFluentServiceConfigurator<TService, TConfigurator> : IFluentServiceConfigurator<TConfigurator>, IBaseFluentConfigurator<TConfigurator> where TConfigurator : IFluentServiceConfigurator<TService, TConfigurator>
-
public class RegistrationConfiguration
-
public class FluentServiceConfigurator<TService, TImplementation, TConfigurator> : FluentServiceConfigurator<TConfigurator> where TImplementation : TService where TConfigurator : FluentServiceConfigurator<TService, TImplementation, TConfigurator>
- public TConfigurator WithAsyncInitializer(Func<TImplementation, IDependencyResolver, CancellationToken, Task> initializer)
- public TConfigurator WithDependencyBinding<TResult>(Expression<Func<TImplementation, TResult>> expression, object dependencyName = null)
- public TConfigurator WithFactory(Func<TImplementation> factory, bool isCompiledLambda = false)
- public TConfigurator WithFactory<TImpl>(Func<TImpl> factory, bool isCompiledLambda = false)
- public TConfigurator WithFactory(Func<IDependencyResolver, TImplementation> factory, bool isCompiledLambda = false)
- public TConfigurator WithFactory<TImpl>(Func<IDependencyResolver, TImpl> factory, bool isCompiledLambda = false)
- public TConfigurator WithFactory<T1>(Func<T1, TImplementation> factory, bool isCompiledLambda = false)
- public TConfigurator WithFactory<T1, TImpl>(Func<T1, TImpl> factory, bool isCompiledLambda = false)
- public TConfigurator WithFactory<T1, T2>(Func<T1, T2, TImplementation> factory, bool isCompiledLambda = false)
- public TConfigurator WithFactory<T1, T2, T3>(Func<T1, T2, T3, TImplementation> factory, bool isCompiledLambda = false)
- public TConfigurator WithFactory<T1, T2, T3, T4>(Func<T1, T2, T3, T4, TImplementation> factory, bool isCompiledLambda = false)
- public TConfigurator WithFactory<T1, T2, T3, T4, T5>(Func<T1, T2, T3, T4, T5, TImplementation> factory, bool isCompiledLambda = false)
- public TConfigurator WithFinalizer(Action<TImplementation> finalizer)
- public TConfigurator WithInitializer(Action<TImplementation, IDependencyResolver> initializer)
-
public class RegistrationConfigurator : FluentServiceConfigurator<RegistrationConfigurator>
-
public class RegistrationConfigurator<TService> : FluentServiceConfigurator<TService, RegistrationConfigurator<TService>>
-
public class RegistrationConfigurator<TService, TImplementation> : FluentServiceConfigurator<TService, TImplementation, RegistrationConfigurator<TService, TImplementation>> where TImplementation : TService
-
public class UnknownRegistrationConfigurator : RegistrationConfigurator
Stashbox.Resolution
-
public interface IMultiServiceResolver : IResolver
-
public struct DelegateCacheEntry
-
public interface IEnumerableSupportedResolver : IServiceResolver, IResolver
-
public interface IEnumerableWrapper : IResolver
-
public interface IParameterizedWrapper : IResolver
-
public interface IRequestContext
-
public interface IResolutionStrategy
- Expression[] BuildAllResolutionExpressions(IContainerContext containerContext, ResolutionContext resolutionContext, TypeInformation typeInformation)
- Expression BuildResolutionExpression(IContainerContext containerContext, ResolutionContext resolutionContext, TypeInformation typeInformation, IEnumerable<InjectionParameter> injectionParameters = null, bool forceSkipUnknownTypeCheck = false)
- ServiceContext BuildExpressionForRegistration(ServiceRegistration serviceRegistration, ResolutionContext resolutionContext, TypeInformation typeInformation)
- ServiceContext BuildExpressionForType(ResolutionContext resolutionContext, TypeInformation typeInformation)
- IEnumerable<ServiceContext> BuildExpressionsForEnumerableRequest(ResolutionContext resolutionContext, TypeInformation typeInformation)
- bool IsTypeResolvable(ResolutionContext resolutionContext, TypeInformation typeInformation)
- void RegisterResolver(IResolver resolver)
-
public interface IResolver
-
public interface IServiceResolver : IResolver
-
public interface IServiceWrapper : IResolver
-
public struct NamedCacheEntry
-
public enum ResolutionBehavior
-
public class ResolutionContext
-
public struct ServiceContext
-
public class TypeInformation
Stashbox.Utils
System.Linq.Expressions
-
public static class ExpressionExtensions
- public static BlockExpression AsBlock(this IList<Expression> expressions, ParameterExpression[] variables)
- public static BlockExpression AsBlock(this IEnumerable<Expression> expressions, ParameterExpression[] variables)
- public static LambdaExpression AsLambda(this Expression expression, Type delegateType, IEnumerable<ParameterExpression> parameters)
- public static ServiceContext AsServiceContext(this Expression expression, ServiceRegistration serviceRegistration = null)
- public static MethodCallExpression CallMethod(this MethodInfo methodInfo, Expression target, IEnumerable<Expression> parameters)
- public static Func<IResolutionScope, object> CompileDelegate(this Expression expression, ResolutionContext resolutionContext, ContainerConfiguration containerConfiguration)
- public static MethodCallExpression CallStaticMethod(this MethodInfo methodInfo, IEnumerable<Expression> parameters)
- 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)
- public static MemberInitExpression InitMembers(this Expression expression, MemberBinding[] bindings)
- public static NewArrayExpression InitNewArray(this Type type, IEnumerable<Expression> initializerExpressions)
- public static InvocationExpression InvokeDelegate(this Delegate delegate, IEnumerable<Expression> parameters)