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

StreamingCommandCompletionToken Constructor

Initializes a new instance of the StreamingCommandCompletionToken class.

Namespace:  Tortuga.Chain.Core
Assembly:  Tortuga.Chain.Core (in Tortuga.Chain.Core.dll)

Syntax


public StreamingCommandCompletionToken(
	DataSource dataSource,
	ExecutionToken executionToken,
	DateTimeOffset startTime,
	Nullable<Object> state,
	Nullable<DbCommand> command,
	Nullable<DbConnection> connection
)
Public Sub New ( _
	dataSource As DataSource, _
	executionToken As ExecutionToken, _
	startTime As DateTimeOffset, _
	state As Nullable(Of Object), _
	command As Nullable(Of DbCommand), _
	connection As Nullable(Of DbConnection) _
)
public:
StreamingCommandCompletionToken(
	DataSource^ dataSource, 
	ExecutionToken^ executionToken, 
	DateTimeOffset^ startTime, 
	Nullable<Object^> state, 
	Nullable<DbCommand^> command, 
	Nullable<DbConnection^> connection
)

Parameters

dataSource
Type: Tortuga.Chain.DataSources..::..DataSource
The data source. Used to fire completed events.
executionToken
Type: Tortuga.Chain.Core..::..ExecutionToken
The execution token.
startTime
Type: DateTimeOffset
The start time.
state
Type: Nullable<(Of <(<'Object>)>)>
The state.
command
Type: Nullable<(Of <(<'DbCommand>)>)>
The command.
connection
Type: Nullable<(Of <(<'DbConnection>)>)>
If the data source wants the caller to close the DbConnection, it will be provided here.