Interface ISoTimeRecorderPlugin
Plugin implemented by time recorders. Start will be called when timing starts
Namespace: SuperOffice.Diagnostics
Assembly: SoCore.dll
Syntax
public interface ISoTimeRecorderPlugin : IPlugin
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 |
---|---|
Boolean |
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. |
Extension Methods
EnumUtil.MapEnums<From, To>(From)