C# Class CK.Core.ActivityMonitorExtension

Provides extension methods for IActivityMonitor and other types from the Activity monitor framework.
Datei anzeigen Open project: Invenietis/ck-core

Public Methods

Method Description
DependentActivity ( this @this, [ fileName = null, [ lineNumber ) : DependentSender

Enables dependent activities token creation and activities launch. Use IActivityMonitor.StartDependentActivity to declare the start of a dependent activity on the target monitor.

StartDependentActivity ( this @this, ActivityMonitor token, [ fileName = null, [ lineNumber ) : IDisposable

Starts a dependent activity. This sets the ActivityMonitor.DependentToken.Topic if it is not null and opens a group tagged with ActivityMonitor.Tags.StartDependentActivity with a message that can be parsed back thanks to ActivityMonitor.DependentToken.TryParseStartMessage.

Method Details

DependentActivity() static public method

Enables dependent activities token creation and activities launch. Use IActivityMonitor.StartDependentActivity to declare the start of a dependent activity on the target monitor.
static public DependentActivity ( this @this, [ fileName = null, [ lineNumber ) : DependentSender
@this this
fileName [ Source file name of the emitter (automatically injected by C# compiler but can be explicitly set).
lineNumber [ Line number in the source file (automatically injected by C# compiler but can be explicitly set).
return DependentSender

StartDependentActivity() static public method

Starts a dependent activity. This sets the ActivityMonitor.DependentToken.Topic if it is not null and opens a group tagged with ActivityMonitor.Tags.StartDependentActivity with a message that can be parsed back thanks to ActivityMonitor.DependentToken.TryParseStartMessage.
static public StartDependentActivity ( this @this, ActivityMonitor token, [ fileName = null, [ lineNumber ) : IDisposable
@this this
token ActivityMonitor Token that describes the origin of the activity.
fileName [ Source file name of the emitter (automatically injected by C# compiler but can be explicitly set).
lineNumber [ Line number in the source file (automatically injected by C# compiler but can be explicitly set).
return IDisposable