1 write to _eventSink
System.Data (1)
fx\src\data\Microsoft\SqlServer\Server\sqlpipe.cs (1)
36
_eventSink
= new SmiEventSink_Default();
43 references to _eventSink
System.Data (43)
fx\src\data\Microsoft\SqlServer\Server\sqlpipe.cs (43)
102
_smiContext.SendMessageToPipe( message,
_eventSink
);
105
_eventSink
.ProcessMessagesAndThrow();
108
_eventSink
.CleanMessages();
113
Debug.Assert(
_eventSink
.HasMessages == false, "There should be no messages left in _eventsink at the end of the Send message!");
128
using ( SmiRecordBuffer recordBuffer = _smiContext.CreateRecordBuffer(columnMetaData,
_eventSink
) ) {
129
_eventSink
.ProcessMessagesAndThrow(); // Handle any errors that are reported.
132
_smiContext.SendResultsStartToPipe( recordBuffer,
_eventSink
);
133
_eventSink
.ProcessMessagesAndThrow(); // Handle any errors that are reported.
138
ValueUtilsSmi.FillCompatibleSettersFromReader(
_eventSink
, recordBuffer, new List<SmiExtendedMetaData>(columnMetaData), reader);
141
ValueUtilsSmi.FillCompatibleITypedSettersFromReader(
_eventSink
, recordBuffer, columnMetaData, reader);
144
_smiContext.SendResultsRowToPipe( recordBuffer,
_eventSink
);
145
_eventSink
.ProcessMessagesAndThrow(); // Handle any errors that are reported.
149
_smiContext.SendResultsEndToPipe( recordBuffer,
_eventSink
);
150
_eventSink
.ProcessMessagesAndThrow(); // Handle any errors that are reported.
158
_eventSink
.CleanMessages();
163
Debug.Assert(
_eventSink
.HasMessages == false, "There should be no messages left in _eventsink at the end of the Send reader!");
181
recordBuffer = _smiContext.CreateRecordBuffer(columnMetaData,
_eventSink
);
183
ValueUtilsSmi.FillCompatibleSettersFromRecord(
_eventSink
, recordBuffer, columnMetaData, record, null /* no default values */);
186
ValueUtilsSmi.FillCompatibleITypedSettersFromRecord(
_eventSink
, recordBuffer, columnMetaData, record);
190
_smiContext.SendResultsStartToPipe( recordBuffer,
_eventSink
);
191
_eventSink
.ProcessMessagesAndThrow(); // Handle any errors that are reported.
195
_smiContext.SendResultsRowToPipe( recordBuffer,
_eventSink
);
196
_eventSink
.ProcessMessagesAndThrow(); // Handle any errors that are reported.
199
_smiContext.SendResultsEndToPipe( recordBuffer,
_eventSink
);
200
_eventSink
.ProcessMessagesAndThrow(); // Handle any errors that are reported.
208
_eventSink
.CleanMessages();
213
Debug.Assert(
_eventSink
.HasMessages == false, "There should be no messages left in _eventsink at the end of the Send record!");
228
recordBuffer = _smiContext.CreateRecordBuffer(record.InternalGetSmiMetaData(),
_eventSink
); // Only MetaData needed for sending start
230
_smiContext.SendResultsStartToPipe( recordBuffer,
_eventSink
);
233
_eventSink
.ProcessMessagesAndThrow();
240
_eventSink
.CleanMessages();
245
Debug.Assert(
_eventSink
.HasMessages == false, "There should be no messages left in _eventsink at the end of the SendResultsStart!");
268
recordBuffer = _smiContext.CreateRecordBuffer(columnMetaData,
_eventSink
);
270
ValueUtilsSmi.FillCompatibleSettersFromRecord(
_eventSink
, recordBuffer, columnMetaData, record, null /* no default values */);
273
ValueUtilsSmi.FillCompatibleITypedSettersFromRecord(
_eventSink
, recordBuffer, columnMetaData, record);
276
_smiContext.SendResultsRowToPipe( recordBuffer,
_eventSink
);
279
_eventSink
.ProcessMessagesAndThrow();
285
_eventSink
.CleanMessages();
290
Debug.Assert(
_eventSink
.HasMessages == false, "There should be no messages left in _eventsink at the end of the SendResultsRow!");
299
_smiContext.SendResultsEndToPipe( _recordBufferSent,
_eventSink
);
307
_eventSink
.ProcessMessagesAndThrow();
310
_eventSink
.CleanMessages();
315
Debug.Assert(
_eventSink
.HasMessages == false, "There should be no messages left in _eventsink at the end of the SendResultsEnd!");