Assembly: OptimaJet.Workflow.Core

Interface IProcessLogProvider

OptimaJet.Workflow.Core.Logging.IProcessLogProvider

Defines a provider that stores and retrieves ProcessLogEntry instances for workflow processes.

public interface IProcessLogProvider

Type Hierarchy

Methods

void Write(ProcessLogEntry entry) #
Writes entry to the provider.

Parameters

Name
Type
Description
entry
ProcessLogEntry
The ProcessLogEntry to write.
Task<IEnumerable<ProcessLogEntry>> ReadAllAsync(Guid processId) #
Retrieves all ProcessLogEntry instances for the process identified by processId.

Parameters

Name
Type
Description
processId
Guid
The ProcessInstance.ProcessId value of the process whose ProcessLogEntry instances to retrieve.

Returns

Type
Description
Task<ProcessLogEntry>
The asynchronous operation that yields all ProcessLogEntry instances associated with the process.
Task<IEnumerable<ProcessLogEntry>> ReadLastAsync(Guid processId, DateTime time) #
Retrieves ProcessLogEntry instances created after time for the process identified by processId.

Parameters

Name
Type
Description
processId
Guid
The ProcessInstance.ProcessId value of the process whose ProcessLogEntry instances to retrieve.
time
DateTime
The exclusive lower bound for ProcessLogEntry.CreatedOn.

Returns

Type
Description
Task<ProcessLogEntry>
The asynchronous operation that yields the matching ProcessLogEntry instances.
Task<IEnumerable<ProcessLogEntry>> ReadLastAsync(Guid processId, int count) #
Retrieves up to count of the most recent ProcessLogEntry instances for the process identified by processId.

Parameters

Name
Type
Description
processId
Guid
The ProcessInstance.ProcessId value of the process whose ProcessLogEntry instances to retrieve.
count
Int32
The maximum number of ProcessLogEntry instances to retrieve.

Returns

Type
Description
Task<ProcessLogEntry>
The asynchronous operation that yields up to count of the most recent ProcessLogEntry instances, ordered from newest to oldest.
Task<IEnumerable<ProcessLogEntry>> ReadEarlyAsync(Guid processId, DateTime time, int count) #
Retrieves up to count ProcessLogEntry instances created before time for the process identified by processId.

Parameters

Name
Type
Description
processId
Guid
The ProcessInstance.ProcessId value of the process whose ProcessLogEntry instances to retrieve.
time
DateTime
The exclusive upper bound for ProcessLogEntry.CreatedOn.
count
Int32
The maximum number of ProcessLogEntry instances to retrieve.

Returns

Type
Description
Task<ProcessLogEntry>
The asynchronous operation that yields up to count of the matching ProcessLogEntry instances, ordered from newest to oldest.