Show / Hide Table of Contents

Class SoTimeLoggerPlugin

Plugin responsible for logging times to file.

Inheritance
object
SoTimeLoggerPlugin
Implements
ISoTimeRecorderPlugin
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
Namespace: SuperOffice.Diagnostics
Assembly: SoCore.dll
Syntax
[SoTimeRecorderPlugin("LogTimes")]
public sealed class SoTimeLoggerPlugin : ISoTimeRecorderPlugin

Constructors

SoTimeLoggerPlugin()

Plugin responsible for logging times to file.

Declaration
public SoTimeLoggerPlugin()

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>)

Start a timing operation.

Declaration
public ISoTimeRecorderContext Start(SoTimerType type, string category, Func<string> description)
Parameters
Type Name Description
SoTimerType type
string category

Category like: Database, Services, WebRequest, etc.

Func<string> description

Brief information about what is being timed.

Returns
Type Description
ISoTimeRecorderContext

Timer object

Implements

ISoTimeRecorderPlugin

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
ObjectExtensions.AssignByReflection<T>(T, T)
ObjectExtensions.GraphCopy<T>(T)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top