Show / Hide Table of Contents

Class SoEventRecorder

Data recorder to keep track of actions being carried out. Content of the data recorder is amended in logs when logging errors and warnings.

Inheritance
object
SoEventRecorder
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.Diagnostics
Assembly: SoCore.dll
Syntax
public static class SoEventRecorder

Properties

State

Obtain the current state of NetServer

Declaration
public static SoEventRecorder.NetServerState State { get; }
Property Value
Type Description
SoEventRecorder.NetServerState

Methods

GetAllEvents()

Get all recorded events

Declaration
public static IEnumerable<SoEventRecorder.SoRecordedEvent> GetAllEvents()
Returns
Type Description
IEnumerable<SoEventRecorder.SoRecordedEvent>

Dictionary containing all recorded events.

GetAllEventsAsString()

String containing all recorded events.

Declaration
public static string GetAllEventsAsString()
Returns
Type Description
string

RecordEvent(string, string)

Record an event. Only the last 100 within the category is kept.

Declaration
public static void RecordEvent(string category, string message)
Parameters
Type Name Description
string category

Category

string message

Message

RecordPermanentEvent(string, string)

Record a permanent event that is kept in memory for the duration of the process.

Declaration
public static void RecordPermanentEvent(string category, string message)
Parameters
Type Name Description
string category

Category - like ClassFactory

string message

Message

RecordState(NetServerState)

Data recorder to keep track of actions being carried out. Content of the data recorder is amended in logs when logging errors and warnings.

Declaration
public static void RecordState(SoEventRecorder.NetServerState state)
Parameters
Type Name Description
SoEventRecorder.NetServerState state
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top