Interface IHookServiceResolver
- Namespace
- Velvet
- Assembly
- Velvet.Docs.dll
Resolver abstraction that fetches services from the host DI container. Decouples DI-framework-specific implementations (such as VContainer) from the framework core.
public interface IHookServiceResolver
Methods
- Resolve<T>()
Resolves an instance of
Tfrom the host container. Implementations must return a non-null instance or throw; returning null violates the contract and will be turned into an System.InvalidOperationException by UseService<T>().