SinkSubscription<T> Constructor

Applies to: Semantic Logging Application Block 1.0

Initializes a new instance of SinkSubscription. It holds references to a logging sink an a subscription, both of which will be disposed by this container when the container itself is disposed.

Namespace: Microsoft.Practices.EnterpriseLibrary.SemanticLogging
Assembly: Microsoft.Practices.EnterpriseLibrary.SemanticLogging (in Microsoft.Practices.EnterpriseLibrary.SemanticLogging.dll) Version: 1.0.0.0 (1.0.1304.0)

Syntax

public SinkSubscription(
    IDisposable subscription,
    T sink
)
'Declaration
Public Sub New ( 
    subscription As IDisposable,
    sink As T
)
public:
SinkSubscription(
    IDisposable^ subscription, 
    T sink
)

Parameters

  • sink
    Type: T
    The logging sink.

See Also

SinkSubscription<T> Class

SinkSubscription<T> Members

Microsoft.Practices.EnterpriseLibrary.SemanticLogging Namespace