TestSink TestSink Class

Definition

public class TestSink : object
Public Class TestSink
    Inherits Object
Inheritance
TestSinkTestSink

Constructors

TestSink(Func, Func) TestSink(Func(Of WriteContext, Boolean), Func(Of BeginScopeContext, Boolean))

public TestSink(Func<WriteContext, bool> writeEnabled = null, Func<BeginScopeContext, bool> beginEnabled = null)
Public Sub New(writeEnabled As Func(Of WriteContext, Boolean) = Nothing, beginEnabled As Func(Of BeginScopeContext, Boolean) = Nothing)
Parameters
writeEnabled
Func<WriteContext, Boolean> Func(Of WriteContext, Boolean)
beginEnabled
Func<BeginScopeContext, Boolean> Func(Of BeginScopeContext, Boolean)

Properties

BeginEnabled BeginEnabled

public Func<BeginScopeContext, bool> BeginEnabled { get; set; }
Public Property BeginEnabled As Func(Of BeginScopeContext, Boolean)

Scopes Scopes

public List<BeginScopeContext> Scopes { get; set; }
Public Property Scopes As List(Of BeginScopeContext)
Value
List<BeginScopeContext> List(Of BeginScopeContext)

WriteEnabled WriteEnabled

public Func<WriteContext, bool> WriteEnabled { get; set; }
Public Property WriteEnabled As Func(Of WriteContext, Boolean)
Value
Func<WriteContext, Boolean> Func(Of WriteContext, Boolean)

Writes Writes

public List<WriteContext> Writes { get; set; }
Public Property Writes As List(Of WriteContext)
Value
List<WriteContext> List(Of WriteContext)

Methods

Begin(BeginScopeContext) Begin(BeginScopeContext)

public void Begin(BeginScopeContext context)
Public Sub Begin(context As BeginScopeContext)
Parameters

EnableWithTypeName(BeginScopeContext) EnableWithTypeName(Of T)(BeginScopeContext)

public static bool EnableWithTypeName<T>(BeginScopeContext context)
Public Shared Function EnableWithTypeName(Of T)(context As BeginScopeContext) As Boolean
Type Parameters
T
Parameters
Returns

EnableWithTypeName(WriteContext) EnableWithTypeName(Of T)(WriteContext)

public static bool EnableWithTypeName<T>(WriteContext context)
Public Shared Function EnableWithTypeName(Of T)(context As WriteContext) As Boolean
Type Parameters
T
Parameters
Returns

Write(WriteContext) Write(WriteContext)

public void Write(WriteContext context)
Public Sub Write(context As WriteContext)
Parameters