Show / Hide Table of Contents

Class ServiceDatabaseResourceLoggerContext

Actual resource logger context that is passed to SoTimer instances, and is called to record events.

Inheritance
Object
ServiceDatabaseResourceLoggerContext
Implements
ISoTimeRecorderContext
IDisposable
Namespace: SuperOffice.CRM.Services.Implementation
Assembly: SoCore.dll
Syntax
public class ServiceDatabaseResourceLoggerContext : Object, ISoTimeRecorderContext, IDisposable
Remarks

Since it's only created for timers of type Database, we know that the Increment() method will only be called by the database functions. Thus, each instance of this class represents one database access, and each call to Increment represents one row read. This is rather indirect but on the other hand nicely flexible and extensible.

Properties

IsRunning

Actual resource logger context that is passed to SoTimer instances, and is called to record events.

Declaration
public bool IsRunning { get; }
Property Value
Type Description
Boolean
Remarks

Since it's only created for timers of type Database, we know that the Increment() method will only be called by the database functions. Thus, each instance of this class represents one database access, and each call to Increment represents one row read. This is rather indirect but on the other hand nicely flexible and extensible.

ThreadId

Actual resource logger context that is passed to SoTimer instances, and is called to record events.

Declaration
public int ThreadId { get; }
Property Value
Type Description
Int32
Remarks

Since it's only created for timers of type Database, we know that the Increment() method will only be called by the database functions. Thus, each instance of this class represents one database access, and each call to Increment represents one row read. This is rather indirect but on the other hand nicely flexible and extensible.

Methods

Dispose()

Actual resource logger context that is passed to SoTimer instances, and is called to record events.

Declaration
public void Dispose()
Remarks

Since it's only created for timers of type Database, we know that the Increment() method will only be called by the database functions. Thus, each instance of this class represents one database access, and each call to Increment represents one row read. This is rather indirect but on the other hand nicely flexible and extensible.

End()

Actual resource logger context that is passed to SoTimer instances, and is called to record events.

Declaration
public void End()
Remarks

Since it's only created for timers of type Database, we know that the Increment() method will only be called by the database functions. Thus, each instance of this class represents one database access, and each call to Increment represents one row read. This is rather indirect but on the other hand nicely flexible and extensible.

Increment()

Actual resource logger context that is passed to SoTimer instances, and is called to record events.

Declaration
public void Increment()
Remarks

Since it's only created for timers of type Database, we know that the Increment() method will only be called by the database functions. Thus, each instance of this class represents one database access, and each call to Increment represents one row read. This is rather indirect but on the other hand nicely flexible and extensible.

Lap(Func<String>)

Actual resource logger context that is passed to SoTimer instances, and is called to record events.

Declaration
public void Lap(Func<string> description)
Parameters
Type Name Description
Func<String> description
Remarks

Since it's only created for timers of type Database, we know that the Increment() method will only be called by the database functions. Thus, each instance of this class represents one database access, and each call to Increment represents one row read. This is rather indirect but on the other hand nicely flexible and extensible.

Split(Func<String>)

Actual resource logger context that is passed to SoTimer instances, and is called to record events.

Declaration
public void Split(Func<string> description)
Parameters
Type Name Description
Func<String> description
Remarks

Since it's only created for timers of type Database, we know that the Increment() method will only be called by the database functions. Thus, each instance of this class represents one database access, and each call to Increment represents one row read. This is rather indirect but on the other hand nicely flexible and extensible.

Implements

ISoTimeRecorderContext
System.IDisposable

Extension Methods

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