Tortuga.Chain Namespace
Tortuga.Chain.CommandBuilders Namespace
Tortuga.Chain.Metadata Namespace

SqlServerAppenders..::..WithChangeNotification<(Of <(<'TResult>)>)> Method

Attaches a SQL Server dependency change listener to this operation.

Namespace:  Tortuga.Chain.SqlServer
Assembly:  Tortuga.Chain.SqlServer.MDS (in Tortuga.Chain.SqlServer.MDS.dll)

Syntax


public static ILink<TResult> WithChangeNotification<TResult>(
	this ILink<TResult> previousLink,
	OnChangeEventHandler eventHandler
)
<ExtensionAttribute> _
Public Shared Function WithChangeNotification(Of TResult) ( _
	previousLink As ILink(Of TResult), _
	eventHandler As OnChangeEventHandler _
) As ILink(Of TResult)
[ExtensionAttribute]
public:
generic<typename TResult>
static ILink<TResult>^ WithChangeNotification(
	ILink<TResult>^ previousLink, 
	OnChangeEventHandler^ eventHandler
)

Type Parameters

TResult
The type of the t result type.

Parameters

previousLink
Type: Tortuga.Chain..::..ILink<(Of <(<'TResult>)>)>
The previous link.
eventHandler
Type: OnChangeEventHandler
The event handler to fire when the underlying data changes.

Return Value

Tortuga.Chain.Core.ILink<TResult>.

Remarks


This will only work for operations against non-transactional SQL Server data sources that also comform to the rules about using SQL Dependency.