Interface IDependencyResolver
- Namespace
- AnyProtocol.DependencyInjection.Abstraction
- Assembly
- AnyProtocol.DependencyInjection.Abstraction.dll
Defines operations for dependency resolver.
public interface IDependencyResolver
Methods
Resolve(Type)
Resolves .
object? Resolve(Type serviceType)
Parameters
serviceTypeTypeThe runtime type to resolve.
Returns
- object
The value produced by the operation.
ResolveAll(Type)
Resolves all registered instances.
IEnumerable<object?> ResolveAll(Type serviceType)
Parameters
serviceTypeTypeThe runtime type to resolve.
Returns
- IEnumerable<object>
The value produced by the operation.
ResolveAll<TService>()
Provides the resolve all<t service> implementation used by AnyProtocol applications.
IEnumerable<TService> ResolveAll<TService>() where TService : class
Returns
- IEnumerable<TService>
Type Parameters
TServiceThe service type.
Resolve<TService>()
Provides the resolve<t service> implementation used by AnyProtocol applications.
TService? Resolve<TService>() where TService : class
Returns
- TService
Type Parameters
TServiceThe service type.