IDependencyResolver
Represents a dependency resolver.
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Threading;
using System.Threading.Tasks;
namespace Stashbox
{
[System.Runtime.CompilerServices.NullableContext(1)]
public interface IDependencyResolver : IServiceProvider, IAsyncDisposable, IDisposable
{
[Obsolete("Please use Resolve(type) or ResolveOrDefault(type) instead.")]
[return: System.Runtime.CompilerServices.Nullable(2)]
object Resolve(Type typeFrom, bool nullResultAllowed, [System.Runtime.CompilerServices.Nullable(new byte[] {
2,
1
})] object[] dependencyOverrides = null);
[Obsolete("Please use Resolve(type, name) or ResolveOrDefault(type, name) instead.")]
[return: System.Runtime.CompilerServices.Nullable(2)]
object Resolve(Type typeFrom, object name, bool nullResultAllowed, [System.Runtime.CompilerServices.Nullable(new byte[] {
2,
1
})] object[] dependencyOverrides = null);
object Resolve(Type typeFrom, [System.Runtime.CompilerServices.Nullable(new byte[] {
2,
1
})] object[] dependencyOverrides = null);
object Resolve(Type typeFrom, object name, [System.Runtime.CompilerServices.Nullable(new byte[] {
2,
1
})] object[] dependencyOverrides = null);
[return: System.Runtime.CompilerServices.Nullable(2)]
object ResolveOrDefault(Type typeFrom, [System.Runtime.CompilerServices.Nullable(new byte[] {
2,
1
})] object[] dependencyOverrides = null);
[return: System.Runtime.CompilerServices.Nullable(2)]
object ResolveOrDefault(Type typeFrom, object name, [System.Runtime.CompilerServices.Nullable(new byte[] {
2,
1
})] object[] dependencyOverrides = null);
IEnumerable<TKey> ResolveAll<[System.Runtime.CompilerServices.Nullable(2)] TKey>([System.Runtime.CompilerServices.Nullable(new byte[] {
2,
1
})] object[] dependencyOverrides = null);
IEnumerable<object> ResolveAll(Type typeFrom, [System.Runtime.CompilerServices.Nullable(new byte[] {
2,
1
})] object[] dependencyOverrides = null);
Delegate ResolveFactory(Type typeFrom, [System.Runtime.CompilerServices.Nullable(2)] object name = null, params Type[] parameterTypes);
[return: System.Runtime.CompilerServices.Nullable(2)]
Delegate ResolveFactoryOrDefault(Type typeFrom, [System.Runtime.CompilerServices.Nullable(2)] object name = null, params Type[] parameterTypes);
IDependencyResolver BeginScope([System.Runtime.CompilerServices.Nullable(2)] object name = null, bool attachToParent = false);
void PutInstanceInScope(Type typeFrom, object instance, bool withoutDisposalTracking = false, [System.Runtime.CompilerServices.Nullable(2)] object name = null);
TTo BuildUp<TTo>(TTo instance) where TTo : class;
object Activate(Type type, params object[] arguments);
ValueTask InvokeAsyncInitializers(CancellationToken token = default(CancellationToken));
[System.Runtime.CompilerServices.NullableContext(2)]
bool CanResolve<TFrom>(object name = null);
bool CanResolve(Type typeFrom, [System.Runtime.CompilerServices.Nullable(2)] object name = null);
}
}