Table of Contents

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
object
HookServiceContext

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.