Class JobInvocation
The serialized form of a captured job call: which method to invoke and with what arguments.
public sealed record JobInvocation : IEquatable<JobInvocation>
- Inheritance
-
JobInvocation
- Implements
- Inherited Members
Remarks
TypeName and every entry of ParameterTypes render type references
as Namespace.Type[+Nested], AssemblySimpleName with Version/Culture/PublicKeyToken
omitted at every level — including generic type arguments and array element types — so
invocations survive assembly version bumps. TypeName is captured from the
declared service type at the call site (the type resolved from DI), never from the method's
declaring type.
ArgumentsJson holds one JSON document per parameter. A CancellationToken parameter serializes as null; the worker injects the job's execution token at invoke time.
Properties
- ArgumentsJson
One JSON document per parameter, positionally aligned with them.
- MethodName
Name of the method to invoke on it, matched ordinally.
- ParameterTypes
The parameter list, which is what distinguishes one overload from another.
- TypeName
The service type to resolve from the container when the job runs.