Show / Hide Table of Contents

Class ResourceTracer

Inheritance
object
ResourceTracer
Implements
ISoTimeRecorderPlugin
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
[SoTimeRecorderPlugin("ResourceTracer")]
public class ResourceTracer : ISoTimeRecorderPlugin

Constructors

ResourceTracer()

Declaration
public ResourceTracer()

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.

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