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
- subscription
Type: System.IDisposable
The subscription that is used to connect to an IObservable<T>.
- sink
Type: T
The logging sink.
See Also
Microsoft.Practices.EnterpriseLibrary.SemanticLogging Namespace