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

OleDbSqlServerOpenDataSource..::..ExecuteStreamAsync Method

Executes the specified implementation asynchronously.

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

Syntax


public Task<StreamingCommandCompletionToken> ExecuteStreamAsync(
	CommandExecutionToken<OleDbCommand, OleDbParameter> executionToken,
	StreamingCommandImplementationAsync<OleDbCommand> implementation,
	CancellationToken cancellationToken,
	Nullable<Object> state
)
Public Function ExecuteStreamAsync ( _
	executionToken As CommandExecutionToken(Of OleDbCommand, OleDbParameter), _
	implementation As StreamingCommandImplementationAsync(Of OleDbCommand), _
	cancellationToken As CancellationToken, _
	state As Nullable(Of Object) _
) As Task(Of StreamingCommandCompletionToken)
public:
Task<StreamingCommandCompletionToken^>^ ExecuteStreamAsync(
	CommandExecutionToken<OleDbCommand^, OleDbParameter^>^ executionToken, 
	StreamingCommandImplementationAsync<OleDbCommand^>^ implementation, 
	CancellationToken^ cancellationToken, 
	Nullable<Object^> state
)

Parameters

executionToken
Type: Tortuga.Chain.Core..::..CommandExecutionToken<(Of <(<'OleDbCommand, OleDbParameter>)>)>
The execution token.
implementation
Type: Tortuga.Chain.Core..::..StreamingCommandImplementationAsync<(Of <(<'OleDbCommand>)>)>
The implementation.
cancellationToken
Type: CancellationToken
The cancellation token.
state
Type: Nullable<(Of <(<'Object>)>)>
The state.

Return Value

The caller is expected to use the StreamingCommandCompletionToken to close any lingering connections and fire appropriate events.

Exceptions


ExceptionCondition
NotImplementedException