Table of Contents

Constructor JobExecutor

Namespace
Millrace.Invocations
Assembly
Millrace.dll

JobExecutor(IServiceScopeFactory, ITenantContextAccessor, IOptions<MillraceOptions>)

Executes a claimed job: resolves the declared service type from a fresh DI scope, restores the job's tenant into the ambient context, deserializes arguments, and invokes the method with the job's execution token injected at CancellationToken positions.

public JobExecutor(IServiceScopeFactory scopes, ITenantContextAccessor tenants, IOptions<MillraceOptions> options)

Parameters

scopes IServiceScopeFactory
tenants ITenantContextAccessor
options IOptions<MillraceOptions>