Table of Contents

Interface IJobResult

Namespace
Tlabs.JobCntrl.Model
Assembly
Tlabs.JobCntrl.dll

Result of a Job run.

public interface IJobResult
Extension Methods

Remarks

Optionaly an async. result is supported.

If IsAsyncResult is true all other properties except AsyncResult are throwning InvalidOperationException .

Properties

AsyncResult

If IsAsyncResult true returns a Task>IJobResult>.

Task<IJobResult> AsyncResult { get; }

Property Value

Task<IJobResult>

Exceptions

InvalidOperationException

If IsAsyncResult is false.

EndAt

Time of Job end.

DateTime EndAt { get; }

Property Value

DateTime

IsAsyncResult

True if asynchronous result.

bool IsAsyncResult { get; }

Property Value

bool

IsSuccessful

Job's success status.

bool IsSuccessful { get; }

Property Value

bool

JobName

Job name.

string JobName { get; }

Property Value

string

Message

Job's result status message.

string? Message { get; }

Property Value

string

ProcessingLog

Job's processing log.

ILog? ProcessingLog { get; }

Property Value

ILog

ResultObjects

Optional JobControl result object(s).

IReadOnlyDictionary<string, object?> ResultObjects { get; }

Property Value

IReadOnlyDictionary<string, object>