Class ServiceCallsRepositoryResourceLogger
Recorder plugin for the SoTimer system, to selectively track only Database Operations and contribute them to the parent service statistics
Implements
Inherited Members
Namespace: SuperOffice.Diagnostics
Assembly: SoCore.dll
Syntax
[SoTimeRecorderPlugin("ServiceCallsRepositoryResourceLogger")]
public class ServiceCallsRepositoryResourceLogger : ISoTimeRecorderPlugin
Constructors
ServiceCallsRepositoryResourceLogger()
Recorder plugin for the SoTimer system, to selectively track only Database Operations and contribute them to the parent service statistics
Declaration
public ServiceCallsRepositoryResourceLogger()
Properties
Enabled
Is the time recorder currently enabled - like SoLogger and LogTimes in the diagnostics configuration section.
Declaration
public bool Enabled { get; }
Property Value
Type | Description |
---|---|
bool |
Methods
Start(SoTimerType, string, Func<string>)
Called to start time logging.
Declaration
public ISoTimeRecorderContext Start(SoTimerType type, string category, Func<string> getDescription)
Parameters
Type | Name | Description |
---|---|---|
SoTimerType | type | What is being logged |
string | category | Chosen category |
Func<string> | getDescription | Choosen description. Description can be costly to generate. |
Returns
Type | Description |
---|---|
ISoTimeRecorderContext | Context used for timing operations. |