Table of Contents

Method TryGetHandler

Namespace
MailFathom.Application.Jobs.Execution
Assembly
MailFathom.Application.dll

TryGetHandler(JobType, out IJobHandler?)

Finds the handler that runs one job type.

public bool TryGetHandler(JobType jobType, out IJobHandler? handler)

Parameters

jobType JobType

The type to dispatch.

handler IJobHandler

The handler for that type, when one is registered.

Returns

bool

true when this process can run the type; otherwise false.