Skip to main content

Interface IProcessLogProvider

Namespace: OptimaJet.Workflow.Core.Logging

Assembly: OptimaJet.Workflow.Core.dll

Syntax
public interface IProcessLogProvider

Methods

Write(ProcessLogEntry)

Declaration
void Write(ProcessLogEntry entry)
Parameters
TypeNameDescription
ProcessLogEntryentry

ReadAllAsync(Guid)

Get all records for specific process.

Declaration
Task<IEnumerable<ProcessLogEntry>> ReadAllAsync(Guid processId)
Parameters
TypeNameDescription
GuidprocessIdId of <xref href="OptimaJet.Workflow.Core.Model.ProcessInstance" data-throw-if-not-resolved="false"></xref>
Returns
TypeDescription
Task<IEnumerable<ProcessLogEntry>>

ReadLastAsync(Guid, DateTime)

Get last records starting the specified time

Declaration
Task<IEnumerable<ProcessLogEntry>> ReadLastAsync(Guid processId, DateTime time)
Parameters
TypeNameDescription
GuidprocessIdId of <xref href="OptimaJet.Workflow.Core.Model.ProcessInstance" data-throw-if-not-resolved="false"></xref>
DateTimetime
Returns
TypeDescription
Task<IEnumerable<ProcessLogEntry>>

ReadLastAsync(Guid, int)

Get last records in certain amount

Declaration
Task<IEnumerable<ProcessLogEntry>> ReadLastAsync(Guid processId, int count)
Parameters
TypeNameDescription
GuidprocessIdId of <xref href="OptimaJet.Workflow.Core.Model.ProcessInstance" data-throw-if-not-resolved="false"></xref>
intcountCount of records
Returns
TypeDescription
Task<IEnumerable<ProcessLogEntry>>

ReadEarlyAsync(Guid, DateTime, int)

Get earle records starting the specified time in certain amount

Declaration
Task<IEnumerable<ProcessLogEntry>> ReadEarlyAsync(Guid processId, DateTime time, int count)
Parameters
TypeNameDescription
GuidprocessIdId of <xref href="OptimaJet.Workflow.Core.Model.ProcessInstance" data-throw-if-not-resolved="false"></xref>
DateTimetime
intcountCount of records
Returns
TypeDescription
Task<IEnumerable<ProcessLogEntry>>

Extension Methods