Interface ISoTimeRecorderPlugin
Plugin implemented by time recorders. Start will be called when timing starts
Namespace: SuperOffice.Diagnostics
Assembly: SoCore.dll
Syntax
public interface ISoTimeRecorderPlugin
Properties
Enabled
Is the time recorder currently enabled - like SoLogger and LogTimes in the diagnostics configuration section.
Declaration
bool Enabled { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
Start(SoTimerType, string, Func<string>)
Called to start time logging.
Declaration
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. |