CK.Core.ActivityMonitorExtension.StartDependentActivity C# (CSharp) Method

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
        static public IDisposable StartDependentActivity( this IActivityMonitor @this, ActivityMonitor.DependentToken token, [CallerFilePath]string fileName = null, [CallerLineNumber]int lineNumber = 0 )
        {
            if( token == null ) throw new ArgumentNullException( "token" );
            return ActivityMonitor.DependentToken.Start( token, @this, fileName, lineNumber );
        }