Class HookServiceContext
- Namespace
- Velvet
- Assembly
- Velvet.Docs.dll
Provides the host IHookServiceResolver to descendant components through the Velvet Provider tree. UseService<T>() reads Ref and throws when no Provider has supplied a resolver.
public static class HookServiceContext
- Inheritance
-
objectHookServiceContext
Fields
- Ref
Context reference used by UseService<T>(). The default value is null so that a missing Provider produces an explicit failure instead of a silent System.NullReferenceException.