Skip to main content

Introducing Formengine - The New Formbuilder, try for FREE formengine.io.

Class MemoryProcessLogger

Inheritance

↳ object

    ↳ MemoryProcessLogger

Implements

IProcessLogProvider

Inherited Members

Equals(object)

Equals(object, object)

GetHashCode()

GetType()

MemberwiseClone()

ReferenceEquals(object, object)

ToString()

Namespace: OptimaJet.Workflow.Core.Logging

Assembly: OptimaJet.Workflow.Core.dll

Syntax
public class MemoryProcessLogger : IProcessLogProvider

Constructors

MemoryProcessLogger(int, int)

Keep a fixed number of new logs by deleting old ones for fixed number of process in memory.

Declaration
public MemoryProcessLogger(int logSize, int capacity)
Parameters
TypeNameDescription
intlogSizeMaximum number of log records in one process.
intcapacityMaximum number of logged processes.

Properties

LogSize

Maximum number of log records in one process.

Declaration
public int LogSize { get; }
Property value
TypeDescription
int

Capacity

Maximum number of logged processes.

Declaration
public int Capacity { get; }
Property value
TypeDescription
int

ProcessLogs

Declaration
public ConcurrentDictionary<Guid, FixedSizedQueue<ProcessLogEntry>> ProcessLogs { get; }
Property value
TypeDescription
ConcurrentDictionary<Guid, FixedSizedQueue<ProcessLogEntry>>

Methods

Write(ProcessLogEntry)

Declaration
public void Write(ProcessLogEntry entry)
Parameters
TypeNameDescription
ProcessLogEntryentry

ReadAllAsync(Guid)

Declaration
public Task<IEnumerable<ProcessLogEntry>> ReadAllAsync(Guid processId)
Parameters
TypeNameDescription
GuidprocessId
Returns
TypeDescription
Task<IEnumerable<ProcessLogEntry>>

ReadLastAsync(Guid, DateTime)

Declaration
public Task<IEnumerable<ProcessLogEntry>> ReadLastAsync(Guid processId, DateTime time)
Parameters
TypeNameDescription
GuidprocessId
DateTimetime
Returns
TypeDescription
Task<IEnumerable<ProcessLogEntry>>

ReadLastAsync(Guid, int)

Declaration
public Task<IEnumerable<ProcessLogEntry>> ReadLastAsync(Guid processId, int count)
Parameters
TypeNameDescription
GuidprocessId
intcount
Returns
TypeDescription
Task<IEnumerable<ProcessLogEntry>>

ReadEarlyAsync(Guid, DateTime, int)

Declaration
public Task<IEnumerable<ProcessLogEntry>> ReadEarlyAsync(Guid processId, DateTime time, int count)
Parameters
TypeNameDescription
GuidprocessId
DateTimetime
intcount
Returns
TypeDescription
Task<IEnumerable<ProcessLogEntry>>

Extension Methods