Workflow Engine .NET

Assembly: OptimaJet.Workflow.Core

Class MemoryProcessLogger

OptimaJet.Workflow.Core.Logging.MemoryProcessLogger

public class MemoryProcessLogger : IProcessLogProvider

Inheritance

  • System.Object

Implemented Interfaces

Constructors

public MemoryProcessLogger(int logSize, int capacity) #
Keep a fixed number of new logs by deleting old ones for fixed number of process in memory.

Parameters

Name
Type
Description
logSize
Int32
Maximum number of log records in one process.
capacity
Int32
Maximum number of logged processes.

Properties

Name
Type
LogSize #
Int32
Maximum number of log records in one process.
Capacity #
Int32
Maximum number of logged processes.
ProcessLogs #
ConcurrentDictionary<ProcessLogEntry>

Methods

public void Write(ProcessLogEntry entry) #

Parameters

Name
Type
Description
entry
ProcessLogEntry
public Task<IEnumerable<ProcessLogEntry>> ReadAllAsync(Guid processId) #
Get all records for specific process.

Parameters

Name
Type
Description
processId
Guid

Returns

Type
Description
Task<ProcessLogEntry>
public Task<IEnumerable<ProcessLogEntry>> ReadLastAsync(Guid processId, DateTime time) #
Get last records starting the specified time

Parameters

Name
Type
Description
processId
Guid
time
DateTime

Returns

Type
Description
Task<ProcessLogEntry>
public Task<IEnumerable<ProcessLogEntry>> ReadLastAsync(Guid processId, int count) #
Get last records in certain amount

Parameters

Name
Type
Description
processId
Guid
count
Int32
Count of records

Returns

Type
Description
Task<ProcessLogEntry>
public Task<IEnumerable<ProcessLogEntry>> ReadEarlyAsync(Guid processId, DateTime time, int count) #
Get earle records starting the specified time in certain amount

Parameters

Name
Type
Description
processId
Guid
time
DateTime
count
Int32
Count of records

Returns

Type
Description
Task<ProcessLogEntry>