Class TraceExtensions
Extension methods for tracing.
Inheritance
System.Object
TraceExtensions
Namespace: Cortex.Net.Api
Assembly: Cortex.Net.dll
Syntax
public static class TraceExtensions : object
Methods
| Improve this Doc View SourceTrace(IDerivation, TraceMode)
Traces the tracking derivation on the Shared State.
Declaration
public static void Trace(this IDerivation derivation, TraceMode traceMode = TraceMode.Log)
Parameters
| Type | Name | Description |
|---|---|---|
| IDerivation | derivation | The derivation to trace. |
| TraceMode | traceMode | The trace mode to use. |
Trace(ISharedState, TraceMode)
Traces the tracking derivation on the Shared State.
Declaration
public static void Trace(this ISharedState sharedState, TraceMode traceMode = TraceMode.Log)
Parameters
| Type | Name | Description |
|---|---|---|
| ISharedState | sharedState | The Shared State to trace. |
| TraceMode | traceMode | The trace mode to use. |
Trace<TObject, TMember>(TObject, Expression<Func<TObject, TMember>>, TraceMode)
Traces the computed property given by the trace expression.
Declaration
public static void Trace<TObject, TMember>(this TObject toTrace, Expression<Func<TObject, TMember>> expression, TraceMode traceMode = TraceMode.Log)
Parameters
| Type | Name | Description |
|---|---|---|
| TObject | toTrace | The object to trace. |
| Expression<Func<TObject, TMember>> | expression | The member expression. |
| TraceMode | traceMode | The trace mode to use. |
Type Parameters
| Name | Description |
|---|---|
| TObject | The type of the object. |
| TMember | The property or method of the object. |