420 references to ConfigureAwait
mscorlib (18)
system\io\bufferedstream.cs (2)
778
return bytesAlreadySatisfied + await _stream.ReadAsync(array, offset, count, cancellationToken).
ConfigureAwait
(false);
789
_readLen = await _stream.ReadAsync(_buffer, 0, _bufferSize, cancellationToken).
ConfigureAwait
(false);
system\io\stream.cs (1)
171
while ((bytesRead = await ReadAsync(buffer, 0, buffer.Length, cancellationToken).
ConfigureAwait
(false)) != 0)
system\io\streamreader.cs (9)
808
if (CharPos_Prop == CharLen_Prop && (await ReadBufferAsync().
ConfigureAwait
(false)) == 0)
842
if (ch == '\r' && (tmpCharPos < tmpCharLen || (await ReadBufferAsync().
ConfigureAwait
(false)) > 0))
860
} while (await ReadBufferAsync().
ConfigureAwait
(false) > 0);
896
await ReadBufferAsync().
ConfigureAwait
(false);
934
if (CharPos_Prop == CharLen_Prop && (await ReadBufferAsync().
ConfigureAwait
(false)) == 0)
972
int len = await tmpStream.ReadAsync(tmpByteBuffer, tmpBytePos, tmpByteBuffer.Length - tmpBytePos).
ConfigureAwait
(false);
1008
ByteLen_Prop = await tmpStream.ReadAsync(tmpByteBuffer, 0, tmpByteBuffer.Length).
ConfigureAwait
(false);
1198
int len = await tmpStream.ReadAsync(tmpByteBuffer, tmpBytePos, tmpByteBuffer.Length - tmpBytePos).
ConfigureAwait
(false);
1218
ByteLen_Prop = await tmpStream.ReadAsync(tmpByteBuffer, 0, tmpByteBuffer.Length).
ConfigureAwait
(false);
system\io\textreader.cs (2)
210
while((len = await ReadAsyncInternal(chars, 0, chars.Length).
ConfigureAwait
(false)) != 0)
270
i = await ReadAsyncInternal(buffer, index + n, count - n).
ConfigureAwait
(false);
system\security\cryptography\cryptostream.cs (2)
407
amountRead += await _stream.ReadAsync(tempInputBuffer, _InputBufferIndex, numWholeBlocksInBytes - _InputBufferIndex, cancellationToken).
ConfigureAwait
(false);
440
amountRead = await _stream.ReadAsync(_InputBuffer, _InputBufferIndex, _InputBlockSize - _InputBufferIndex, cancellationToken).
ConfigureAwait
(false);
system\threading\SemaphoreSlim.cs (2)
709
if (asyncWaiter == await waitCompleted.
ConfigureAwait
(false))
734
return await asyncWaiter.
ConfigureAwait
(false);
System (2)
net\System\Net\mail\BufferedReadStream.cs (1)
100
int returnValue = await base.ReadAsync(buffer, offset, count, cancellationToken).
ConfigureAwait
(false);
net\System\Net\WebSockets\WebSocketHelpers.cs (1)
286
return task.
ConfigureAwait
(false);
System.Data (2)
fx\src\data\System\Data\SqlClient\TdsParser.cs (2)
10426
nRead = await feed._source.ReadBlockAsync(inBuff, 0, constTextBufferSize).
ConfigureAwait
(false);
10468
nRead = await feed._source.ReadAsync(buff, 0, readSize).
ConfigureAwait
(false);
System.ServiceModel (3)
System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (3)
667
await receiveTask.
ConfigureAwait
(false);
851
await this.streamWaitTask.Task.
ConfigureAwait
(false);
880
await receiveTask.
ConfigureAwait
(false);
System.ServiceModel.Internals (3)
System\Runtime\TaskExtensions.cs (3)
104
return task.
ConfigureAwait
(false);
114
return task.
ConfigureAwait
(true);
200
return await task.
ConfigureAwait
(false);
System.Web (3)
WebSockets\AspNetWebSocket.cs (3)
280
WebSocketReceiveResult result = await receiveCloseTask.
ConfigureAwait
(continueOnCapturedContext: false);
394
WebSocketReceiveResult result = await DoWork(() => _pipe.ReadFragmentAsync(buffer), cancellationToken).
ConfigureAwait
(continueOnCapturedContext: false);
585
return await task.
ConfigureAwait
(continueOnCapturedContext: false);
System.Xml (389)
System\Xml\AsyncHelper.cs (3)
78
return await func().
ConfigureAwait
(false);
94
if (await task.
ConfigureAwait
(false))
97
return await func().
ConfigureAwait
(false);
System\Xml\Core\ReadContentAsBinaryHelperAsync.cs (24)
32
if ( !await InitAsync().
ConfigureAwait
(false) ) {
40
return await ReadContentAsBinaryAsync( buffer, index, count ).
ConfigureAwait
(false);
56
return await ReadContentAsBinaryAsync( buffer, index, count ).
ConfigureAwait
(false);
79
if ( !await InitAsync().
ConfigureAwait
(false) ) {
87
return await ReadContentAsBinaryAsync( buffer, index, count ).
ConfigureAwait
(false);
103
return await ReadContentAsBinaryAsync( buffer, index, count ).
ConfigureAwait
(false);
126
if ( !await InitOnElementAsync().
ConfigureAwait
(false) ) {
136
return await ReadElementContentAsBinaryAsync( buffer, index, count ).
ConfigureAwait
(false);
150
return await ReadElementContentAsBinaryAsync( buffer, index, count ).
ConfigureAwait
(false);
173
if ( !await InitOnElementAsync().
ConfigureAwait
(false) ) {
183
return await ReadElementContentAsBinaryAsync( buffer, index, count ).
ConfigureAwait
(false);
197
return await ReadElementContentAsBinaryAsync( buffer, index, count ).
ConfigureAwait
(false);
202
while ( await MoveToNextContentNodeAsync( true ).
ConfigureAwait
(false) )
209
await reader.ReadAsync().
ConfigureAwait
(false);
218
if ( !await MoveToNextContentNodeAsync( false ).
ConfigureAwait
(false) ) {
232
await reader.ReadAsync().
ConfigureAwait
(false);
238
if ( !await MoveToNextContentNodeAsync( false ).
ConfigureAwait
(false) ) {
243
await reader.ReadAsync().
ConfigureAwait
(false);
272
if ( ( valueChunkLength = await reader.ReadValueChunkAsync( valueChunk, 0, ChunkSize ).
ConfigureAwait
(false) ) == 0 ) {
280
string value = await reader.GetValueAsync().
ConfigureAwait
(false);
292
if ( !await MoveToNextContentNodeAsync( true ).
ConfigureAwait
(false) ) {
304
int decoded = await ReadContentAsBinaryAsync( buffer, index, count ).
ConfigureAwait
(false);
315
await reader.ReadAsync().
ConfigureAwait
(false);
348
} while ( await reader.ReadAsync().
ConfigureAwait
(false) );
System\Xml\Core\XmlCharCheckingReaderAsync.cs (24)
35
if ( !await base.reader.ReadAsync().
ConfigureAwait
(false) ) {
51
return await ReadAsync().
ConfigureAwait
(false);
56
return await ReadAsync().
ConfigureAwait
(false);
61
return await ReadAsync().
ConfigureAwait
(false);
69
return await ReadAsync().
ConfigureAwait
(false);
97
CheckCharacters( await base.reader.GetValueAsync().
ConfigureAwait
(false) );
110
return await ReadAsync().
ConfigureAwait
(false);
120
return await ReadAsync().
ConfigureAwait
(false);
132
return await ReadAsync().
ConfigureAwait
(false);
156
return await ReadAsync().
ConfigureAwait
(false);
159
CheckWhitespace( await base.reader.GetValueAsync().
ConfigureAwait
(false) );
165
CheckWhitespace( await base.reader.GetValueAsync().
ConfigureAwait
(false) );
194
return await base.ReadContentAsBase64Async( buffer, index, count ).
ConfigureAwait
(false);
204
return await base.ReadContentAsBase64Async( buffer, index, count ).
ConfigureAwait
(false);
212
int readCount = await readBinaryHelper.ReadContentAsBase64Async(buffer, index, count).
ConfigureAwait
(false);
230
return await base.ReadContentAsBinHexAsync( buffer, index, count ).
ConfigureAwait
(false);
240
return await base.ReadContentAsBinHexAsync( buffer, index, count ).
ConfigureAwait
(false);
248
int readCount = await readBinaryHelper.ReadContentAsBinHexAsync(buffer, index, count).
ConfigureAwait
(false);
280
return await base.ReadElementContentAsBase64Async( buffer, index, count ).
ConfigureAwait
(false);
290
return await base.ReadElementContentAsBase64Async( buffer, index, count ).
ConfigureAwait
(false);
298
int readCount = await readBinaryHelper.ReadElementContentAsBase64Async(buffer, index, count).
ConfigureAwait
(false);
329
return await base.ReadElementContentAsBinHexAsync( buffer, index, count ).
ConfigureAwait
(false);
339
return await base.ReadElementContentAsBinHexAsync( buffer, index, count ).
ConfigureAwait
(false);
347
int readCount = await readBinaryHelper.ReadElementContentAsBinHexAsync(buffer, index, count).
ConfigureAwait
(false);
System\Xml\Core\XmlReaderAsync.cs (23)
38
return await InternalReadContentAsStringAsync().
ConfigureAwait
(false);
57
string strContentValue = await InternalReadContentAsStringAsync().
ConfigureAwait
(false);
80
if (await SetupReadElementContentAsXxxAsync("ReadElementContentAsObject").
ConfigureAwait
(false)) {
81
object value = await ReadContentAsObjectAsync().
ConfigureAwait
(false);
90
if (await SetupReadElementContentAsXxxAsync("ReadElementContentAsString").
ConfigureAwait
(false)) {
91
string value = await ReadContentAsStringAsync().
ConfigureAwait
(false);
100
if (await SetupReadElementContentAsXxxAsync("ReadElementContentAs").
ConfigureAwait
(false)) {
101
object value = await ReadContentAsAsync(returnType, namespaceResolver).
ConfigureAwait
(false);
172
} while (await ReadAsync().
ConfigureAwait
(false));
182
await ReadAsync().
ConfigureAwait
(false);
212
while (await this.ReadAsync().
ConfigureAwait
(false) && (d < this.Depth)) {
225
xtw.WriteString(await this.GetValueAsync().
ConfigureAwait
(false));
229
xtw.WriteWhitespace(await this.GetValueAsync().
ConfigureAwait
(false));
253
await ReadAsync().
ConfigureAwait
(false);
263
await ReadAsync().
ConfigureAwait
(false);
295
while (await ReadAsync().
ConfigureAwait
(false) && depth < Depth) {
301
return await ReadAsync().
ConfigureAwait
(false);
304
return await ReadAsync().
ConfigureAwait
(false);
323
value = await this.GetValueAsync().
ConfigureAwait
(false);
330
sb.Append(await this.GetValueAsync().
ConfigureAwait
(false));
348
} while ((this.AttributeCount != 0) ? this.ReadAttributeValue() : await this.ReadAsync().
ConfigureAwait
(false));
362
await this.ReadAsync().
ConfigureAwait
(false);
370
await this.ReadAsync().
ConfigureAwait
(false);
System\Xml\Core\XmlSubtreeReaderAsync.cs (29)
46
if ( await reader.ReadAsync().
ConfigureAwait
(false) ) {
71
if ( !await FinishReadElementContentAsBinaryAsync().
ConfigureAwait
(false) ) {
74
return await ReadAsync().
ConfigureAwait
(false);
78
if ( !await FinishReadContentAsBinaryAsync().
ConfigureAwait
(false) ) {
81
return await ReadAsync().
ConfigureAwait
(false);
92
await ReadAsync().
ConfigureAwait
(false);
103
if ( await reader.ReadAsync().
ConfigureAwait
(false) ) {
141
if ( await FinishReadElementContentAsBinaryAsync().
ConfigureAwait
(false) ) {
148
if ( await FinishReadContentAsBinaryAsync().
ConfigureAwait
(false) ) {
165
object value = await reader.ReadContentAsObjectAsync().
ConfigureAwait
(false);
178
string value = await reader.ReadContentAsStringAsync().
ConfigureAwait
(false);
191
object value = await reader.ReadContentAsAsync( returnType, namespaceResolver ).
ConfigureAwait
(false);
241
return await reader.ReadContentAsBase64Async( buffer, index, count ).
ConfigureAwait
(false);
252
int read = await reader.ReadContentAsBase64Async( buffer, index, count ).
ConfigureAwait
(false);
281
if ( !await InitReadElementContentAsBinaryAsync( State.ReadElementContentAsBase64 ).
ConfigureAwait
(false) ) {
287
int read = await reader.ReadContentAsBase64Async( buffer, index, count ).
ConfigureAwait
(false);
305
await ReadAsync().
ConfigureAwait
(false);
359
return await reader.ReadContentAsBinHexAsync( buffer, index, count ).
ConfigureAwait
(false);
370
int read = await reader.ReadContentAsBinHexAsync( buffer, index, count ).
ConfigureAwait
(false);
399
if ( !await InitReadElementContentAsBinaryAsync( State.ReadElementContentAsBinHex ).
ConfigureAwait
(false) ) {
404
int read = await reader.ReadContentAsBinHexAsync( buffer, index, count ).
ConfigureAwait
(false);
422
await ReadAsync().
ConfigureAwait
(false);
491
if ( !await ReadAsync().
ConfigureAwait
(false) || isEmpty ) {
501
await ReadAsync().
ConfigureAwait
(false);
515
while ( await reader.ReadContentAsBase64Async( bytes, 0, 256 ).
ConfigureAwait
(false) > 0 ) ;
518
while ( await reader.ReadContentAsBinHexAsync( bytes, 0, 256 ).
ConfigureAwait
(false) > 0 ) ;
536
return await ReadAsync().
ConfigureAwait
(false);
544
while ( await reader.ReadContentAsBase64Async( bytes, 0, 256 ).
ConfigureAwait
(false) > 0 ) ;
547
while ( await reader.ReadContentAsBinHexAsync( bytes, 0, 256 ).
ConfigureAwait
(false) > 0 ) ;
System\Xml\Core\XmlTextReaderImplAsync.cs (138)
77
Stream stream = (Stream)(await laterInitParam.inputUriResolver.GetEntityAsync(laterInitParam.inputbaseUri, string.Empty, typeof(Stream)).
ConfigureAwait
(false));
272
bool result = await task.
ConfigureAwait
(false);
273
return await ReadAsync_SwitchToInteractiveXmlDecl_Helper(result).
ConfigureAwait
(false);
332
while ( await outerReader.ReadAsync().
ConfigureAwait
(false) && index > initialDepth ) ;
342
await outerReader.ReadAsync().
ConfigureAwait
(false);
347
await task.
ConfigureAwait
(false);
356
return await ReadContentAsBinaryAsync(buffer, index, count).
ConfigureAwait
(false);
437
return await ReadContentAsBinaryAsync( buffer, index, count ).
ConfigureAwait
(false);
452
if (!await InitReadContentAsBinaryAsync().
ConfigureAwait
(false)) {
461
return await ReadContentAsBinaryAsync( buffer, index, count ).
ConfigureAwait
(false);
465
await task.
ConfigureAwait
(false);
474
return await ReadElementContentAsBinaryAsync(buffer, index, count).
ConfigureAwait
(false);
555
return await ReadElementContentAsBinaryAsync(buffer, index, count).
ConfigureAwait
(false);
569
if (!await InitReadElementContentAsBinaryAsync().
ConfigureAwait
(false)) {
579
return await ReadElementContentAsBinaryAsync( buffer, index, count ).
ConfigureAwait
(false);
654
var tuple_0 = await ParseTextAsync(orChars).
ConfigureAwait
(false);
698
var tuple_1 = await this.ParseNumericCharRefAsync( true, internalSubsetBuilder).
ConfigureAwait
(false);
713
await ParsePIAsync( null ).
ConfigureAwait
(false);
717
await ParsePIAsync( sb ).
ConfigureAwait
(false);
768
retValue = await PushExternalEntityAsync( entity ).
ConfigureAwait
(false);
807
await EatWhitespacesAsync( null ).
ConfigureAwait
(false);
809
if ( !await ParseXmlDeclarationAsync( true ).
ConfigureAwait
(false) ) {
866
int read = await stream.ReadAsync( ps.bytes, ps.bytesUsed, ps.bytes.Length - ps.bytesUsed ).
ConfigureAwait
(false);
899
await ReadDataAsync().
ConfigureAwait
(false);
1067
int read = await ps.stream.ReadAsync( ps.bytes, ps.bytesUsed, ps.bytes.Length - ps.bytesUsed ).
ConfigureAwait
(false);
1081
return await ReadDataAsync().
ConfigureAwait
(false);
1086
charsRead = await ps.textReader.ReadAsync( ps.chars, ps.charsUsed, ps.chars.Length - ps.charsUsed - 1 ).
ConfigureAwait
(false);
1106
if ( await ReadDataAsync().
ConfigureAwait
(false) == 0 ) {
1136
int wsCount = await EatWhitespacesAsync( xmlDeclState == 0 ? null : sb ).
ConfigureAwait
(false);
1194
int nameEndPos = await ParseNameAsync().
ConfigureAwait
(false);
1238
await EatWhitespacesAsync( sb ).
ConfigureAwait
(false);
1248
await EatWhitespacesAsync( sb ).
ConfigureAwait
(false);
1337
if ( await ReadDataAsync().
ConfigureAwait
(false) != 0 ) {
1349
if ( ps.isEof || await ReadDataAsync().
ConfigureAwait
(false) == 0 ) {
1505
var tuple_3 = await HandleEntityReferenceAsync(false, EntityExpandType.OnlyGeneral).
ConfigureAwait
(false);
1520
if (await ParseTextAsync().
ConfigureAwait
(false)) {
1523
return await ParseDocumentContentAsync().
ConfigureAwait
(false);
1525
return await ParseDocumentContentAsync().
ConfigureAwait
(false);
1550
if (await task.
ConfigureAwait
(false)) {
1556
return await ParseDocumentContentAsync().
ConfigureAwait
(false);
1561
if (await ReadDataAsync().
ConfigureAwait
(false) != 0) {
1562
return await ParseDocumentContentAsync().
ConfigureAwait
(false);
1578
return await ParseDocumentContentAsync().
ConfigureAwait
(false);
1679
if (await ReadDataAsync().
ConfigureAwait
(false) == 0) {
1699
return await ParseElementContentAsync().
ConfigureAwait
(false);
1798
var tuple_4 = await task.
ConfigureAwait
(false);
1898
if (await ReadDataAsync().
ConfigureAwait
(false) == 0) {
1931
if (await ReadDataAsync().
ConfigureAwait
(false) == 0) {
2099
if (await ReadDataAsync().
ConfigureAwait
(false) == 0) {
2111
var tuple_5 = await ParseQNameAsync().
ConfigureAwait
(false);
2300
var tuple_6 = await ParseQNameAsync().
ConfigureAwait
(false);
2310
var tuple_7 = await ParseQNameAsync().
ConfigureAwait
(false);
2328
await EatWhitespacesAsync( null ).
ConfigureAwait
(false);
2339
await EatWhitespacesAsync( null ).
ConfigureAwait
(false);
2405
if ( await ReadDataAsync().
ConfigureAwait
(false) != 0 ) {
2527
var tuple_8 = await HandleEntityReferenceAsync( true, EntityExpandType.All).
ConfigureAwait
(false);
2551
string entityName = await ParseEntityNameAsync().
ConfigureAwait
(false);
2573
await ParseEntityNameAsync().
ConfigureAwait
(false);
2638
if ( await ReadDataAsync().
ConfigureAwait
(false) == 0 ) {
2760
tuple_9 = await ParseTextAsync(orChars).
ConfigureAwait
(false);
2776
var tuple_10 = await parseTask.
ConfigureAwait
(false);
2806
tuple_11 = await ParseTextAsync(orChars).
ConfigureAwait
(false);
2848
var tuple_12 = await ParseTextAsync(orChars).
ConfigureAwait
(false);
2869
tuple_13 = await ParseTextAsync(orChars).
ConfigureAwait
(false);
2893
return await ParseTextAsync_IgnoreNode().
ConfigureAwait
(false);
3000
await task.
ConfigureAwait
(false);
3024
return await ParseTextAsync_NoValue(outOrChars, pos).
ConfigureAwait
(false);
3026
return await ParseTextAsync_PartialValue(pos, rcount, rpos, orChars, c).
ConfigureAwait
(false);
3153
var tuple_14 = await HandleEntityReferenceAsync(false, EntityExpandType.All).
ConfigureAwait
(false);
3210
if (await ZeroEndingStreamAsync(pos).
ConfigureAwait
(false)) {
3232
if (await ReadDataAsync().
ConfigureAwait
(false) == 0) {
3297
var tuple_15 = await ParseTextAsync(orChars).
ConfigureAwait
(false);
3306
tuple_15 = await ParseTextAsync(orChars).
ConfigureAwait
(false);
3370
tuple_16 = await ParseTextAsync(orChars).
ConfigureAwait
(false);
3409
while ( await MoveToNextContentNodeAsync( true ).
ConfigureAwait
(false) );
3420
await outerReader.ReadAsync().
ConfigureAwait
(false);
3429
await EatWhitespacesAsync( null ).
ConfigureAwait
(false);
3430
if ( ps.chars[ps.charPos] == '<' || ps.charsUsed - ps.charPos == 0 || await ZeroEndingStreamAsync( ps.charPos ).
ConfigureAwait
(false) ) {
3436
await EatWhitespacesAsync( stringBuilder ).
ConfigureAwait
(false);
3437
if ( ps.chars[ps.charPos] == '<' || ps.charsUsed - ps.charPos == 0 || await ZeroEndingStreamAsync( ps.charPos ).
ConfigureAwait
(false) ) {
3462
curNode.SetNamedNode( XmlNodeType.EntityReference, await ParseEntityNameAsync().
ConfigureAwait
(false) );
3472
if ( await ReadDataAsync().
ConfigureAwait
(false) == 0 ) {
3481
var tuple_17 = await ParseNumericCharRefAsync( expandType != EntityExpandType.OnlyGeneral, null).
ConfigureAwait
(false);
3494
charRefEndPos = await ParseNamedCharRefAsync( expandType != EntityExpandType.OnlyGeneral, null ).
ConfigureAwait
(false);
3518
endPos = await ParseNameAsync().
ConfigureAwait
(false);
3537
EntityType entType = await HandleGeneralEntityReferenceAsync( entityName, isInAttributeValue, false, entityLinePos ).
ConfigureAwait
(false);
3596
await PushExternalEntityAsync( entity ).
ConfigureAwait
(false);
3603
await PushExternalEntityAsync( entity ).
ConfigureAwait
(false);
3642
int nameEndPos = await ParseNameAsync().
ConfigureAwait
(false);
3662
if ( await EatWhitespacesAsync( piInDtdStringBuilder ).
ConfigureAwait
(false) == 0 ) {
3664
await ReadDataAsync().
ConfigureAwait
(false);
3674
var tuple_18 = await ParsePIValueAsync().
ConfigureAwait
(false);
3699
tuple_19 = await ParsePIValueAsync().
ConfigureAwait
(false);
3719
tuple_20 = await ParsePIValueAsync().
ConfigureAwait
(false);
3741
if ( await ReadDataAsync().
ConfigureAwait
(false) == 0 ) {
3903
var tuple_21 = await ParseCDataOrCommentTupleAsync( type).
ConfigureAwait
(false);
3918
tuple_22 = await ParseCDataOrCommentTupleAsync( type).
ConfigureAwait
(false);
3933
tuple_23 = await ParseCDataOrCommentTupleAsync( type).
ConfigureAwait
(false);
3950
if ( await ReadDataAsync().
ConfigureAwait
(false) == 0 ) {
4101
if ( await ReadDataAsync().
ConfigureAwait
(false) == 0 ) {
4121
await EatWhitespacesAsync( null ).
ConfigureAwait
(false);
4145
dtdInfo = await dtdParser.ParseInternalDtdAsync(new DtdParserProxy(this), true).
ConfigureAwait
(false);
4164
var tuple_24 = await ParseQNameAsync().
ConfigureAwait
(false);
4172
await EatWhitespacesAsync( null ).
ConfigureAwait
(false);
4178
if ( await ReadDataAsync().
ConfigureAwait
(false) == 0 ) {
4189
if ( await EatWhitespacesAsync( null ).
ConfigureAwait
(false) == 0 ) {
4197
if ( await EatWhitespacesAsync( null ).
ConfigureAwait
(false) == 0 ) {
4204
await EatWhitespacesAsync( null ).
ConfigureAwait
(false);
4209
if ( await ReadDataAsync().
ConfigureAwait
(false) == 0 ) {
4220
if ( await EatWhitespacesAsync( null ).
ConfigureAwait
(false) == 0 ) {
4227
await EatWhitespacesAsync( null ).
ConfigureAwait
(false);
4239
await EatWhitespacesAsync( null ).
ConfigureAwait
(false);
4420
if ( await ReadDataAsync().
ConfigureAwait
(false) == 0 ) {
4504
if ( await ReadDataAsync().
ConfigureAwait
(false) == 0 ) {
4534
if ( await ReadDataAsync().
ConfigureAwait
(false) == 0 ) {
4564
if ( await ReadDataAsync().
ConfigureAwait
(false) == 0 ) {
4580
var tuple_25 = await ParseQNameAsync( false, 0).
ConfigureAwait
(false);
4628
var tuple_27 = await ReadDataInNameAsync(pos).
ConfigureAwait
(false);
4682
var tuple_28 = await ReadDataInNameAsync(pos).
ConfigureAwait
(false);
4703
bool newDataRead = ( await ReadDataAsync().
ConfigureAwait
(false) != 0 );
4714
endPos = await ParseNameAsync().
ConfigureAwait
(false);
4747
if ( await OpenAndPushAsync( uri ).
ConfigureAwait
(false) ) {
4761
if ( await OpenAndPushAsync( uri ).
ConfigureAwait
(false) ) {
4802
TextReader textReader = (TextReader) await xmlResolver.GetEntityAsync( uri, null, typeof( TextReader ) ).
ConfigureAwait
(false);
4814
Stream stream = (Stream)await xmlResolver.GetEntityAsync(uri, null, typeof(Stream)).
ConfigureAwait
(false);
4849
await EatWhitespacesAsync( null ).
ConfigureAwait
(false);
4851
if ( !await ParseXmlDeclarationAsync( true ).
ConfigureAwait
(false) ) {
4877
if ( v1Compat && pos == ps.charsUsed - 1 && ps.chars[pos] == (char)0 && await ReadDataAsync().
ConfigureAwait
(false) == 0 && ps.isStreamEof ) {
4891
dtdInfo = await dtdParser.ParseFreeFloatingDtdAsync(fragmentParserContext.BaseURI, fragmentParserContext.DocTypeName, fragmentParserContext.PublicId, fragmentParserContext.SystemId, fragmentParserContext.InternalSubset, new DtdParserProxy( this ) ).
ConfigureAwait
(false);
4913
if ( !await MoveToNextContentNodeAsync( false ).
ConfigureAwait
(false) ) {
4930
await outerReader.ReadAsync().
ConfigureAwait
(false);
4936
if ( !await MoveToNextContentNodeAsync( false ).
ConfigureAwait
(false) ) {
4941
await outerReader.ReadAsync().
ConfigureAwait
(false);
4974
} while ( await outerReader.ReadAsync().
ConfigureAwait
(false) );
5018
var tuple_36 = await ParseTextAsync(orChars).
ConfigureAwait
(false);
5052
if ( !await MoveToNextContentNodeAsync( true ).
ConfigureAwait
(false) ) {
5066
int decoded = await ReadContentAsBinaryAsync( buffer, index, count ).
ConfigureAwait
(false);
5082
await outerReader.ReadAsync().
ConfigureAwait
(false);
System\Xml\Core\XmlValidatingReaderImplAsync.cs (10)
29
if ( await coreReader.ReadAsync().
ConfigureAwait
(false) ) {
81
int readCount = await readBinaryHelper.ReadContentAsBase64Async( buffer, index, count ).
ConfigureAwait
(false);
102
int readCount = await readBinaryHelper.ReadContentAsBinHexAsync( buffer, index, count ).
ConfigureAwait
(false);
123
int readCount = await readBinaryHelper.ReadElementContentAsBase64Async( buffer, index, count ).
ConfigureAwait
(false);
144
int readCount = await readBinaryHelper.ReadElementContentAsBinHexAsync( buffer, index, count ).
ConfigureAwait
(false);
153
if ( !await outerReader.ReadAsync().
ConfigureAwait
(false) ) {
176
if ( !await outerReader.ReadAsync().
ConfigureAwait
(false) ) {
202
return await GetValueAsync().
ConfigureAwait
(false);
222
IDtdInfo dtdInfo = await dtdParser.ParseFreeFloatingDtdAsync( parserContext.BaseURI, parserContext.DocTypeName, parserContext.PublicId, parserContext.SystemId, parserContext.InternalSubset, proxy ).
ConfigureAwait
(false);
232
while ( await outerReader.ReadAsync().
ConfigureAwait
(false) && coreReader.Depth > initialDepth );
System\Xml\Core\XmlWriterAsync.cs (4)
346
while ((read = await reader.ReadValueChunkAsync(writeNodeBuffer, 0, WriteNodeBufferSize).
ConfigureAwait
(false)) > 0) {
352
await WriteStringAsync(await reader.GetValueAsync().
ConfigureAwait
(false)).ConfigureAwait(false);
357
await WriteWhitespaceAsync(await reader.GetValueAsync().
ConfigureAwait
(false)).ConfigureAwait(false);
380
} while (await reader.ReadAsync().
ConfigureAwait
(false) && (d < reader.Depth || (d == reader.Depth && reader.NodeType == XmlNodeType.EndElement)));
System\Xml\Core\XsdCachingReaderAsync.cs (6)
36
if (await coreReader.ReadAsync().
ConfigureAwait
(false)) {
56
recordedNode.SetItemData(await coreReader.GetValueAsync().
ConfigureAwait
(false));
77
return await coreReader.ReadAsync().
ConfigureAwait
(false);
100
while (await coreReader.ReadAsync().
ConfigureAwait
(false) && coreReader.Depth > startDepth)
103
await coreReader.ReadAsync().
ConfigureAwait
(false);
114
await ReadAsync().
ConfigureAwait
(false);
System\Xml\Core\XsdValidatingReaderAsync.cs (21)
40
object typedValue = await InternalReadContentAsObjectAsync().
ConfigureAwait
(false);
67
var tuple_0 = await InternalReadContentAsObjectTupleAsync(false).
ConfigureAwait
(false);
102
var tuple_1 = await InternalReadElementContentAsObjectAsync( true).
ConfigureAwait
(false);
114
var tuple_9 = await InternalReadElementContentAsObjectAsync().
ConfigureAwait
(false);
145
var tuple_10 = await InternalReadElementContentAsObjectTupleAsync( false).
ConfigureAwait
(false);
195
if (await task.
ConfigureAwait
(false)) {
301
await ReadAsync().
ConfigureAwait
(false);
320
int readCount = await readBinaryHelper.ReadContentAsBase64Async(buffer, index, count).
ConfigureAwait
(false);
343
int readCount = await readBinaryHelper.ReadContentAsBinHexAsync(buffer, index, count).
ConfigureAwait
(false);
366
int readCount = await readBinaryHelper.ReadElementContentAsBase64Async(buffer, index, count).
ConfigureAwait
(false);
389
int readCount = await readBinaryHelper.ReadElementContentAsBinHexAsync(buffer, index, count).
ConfigureAwait
(false);
530
if (await coreReader.ReadAsync().
ConfigureAwait
(false)) {
553
var tuple_11 = await InternalReadContentAsObjectTupleAsync(unwrapTypedValue).
ConfigureAwait
(false);
601
object value = ReturnBoxedValue(await ReadTillEndElementAsync().
ConfigureAwait
(false), xmlSchemaInfo.XmlType, unwrapTypedValue);
614
originalStringValue = await InternalReadContentAsStringAsync().
ConfigureAwait
(false);
632
var tuple_13 = await InternalReadElementContentAsObjectTupleAsync( unwrapTypedValue).
ConfigureAwait
(false);
656
await this.ReadAsync().
ConfigureAwait
(false);
663
await this.ReadAsync().
ConfigureAwait
(false);
685
var tuple_14 = await InternalReadContentAsObjectTupleAsync(unwrapTypedValue).
ConfigureAwait
(false);
698
await this.ReadAsync().
ConfigureAwait
(false);
707
while (await coreReader.ReadAsync().
ConfigureAwait
(false)) {
System\Xml\Schema\DtdParserAsync.cs (103)
76
if ( await GetTokenAsync( false ).
ConfigureAwait
(false) != Token.QName ) {
82
Token token = await GetTokenAsync( false ).
ConfigureAwait
(false);
85
var tuple_0 = await ParseExternalIdAsync( token, Token.DOCTYPE).
ConfigureAwait
(false);
89
token = await GetTokenAsync( false).
ConfigureAwait
(false);
134
if ( !await readerAdapter.PushExternalSubsetAsync( systemId, publicId ).
ConfigureAwait
(false) ) {
158
Token token = await GetTokenAsync( false ).
ConfigureAwait
(false);
218
if ( await GetTokenAsync( false ).
ConfigureAwait
(false) != Token.GreaterThan ) {
264
if (await GetTokenAsync(true).
ConfigureAwait
(false) != Token.QName) {
280
switch (await GetTokenAsync(false).
ConfigureAwait
(false)) {
359
Token token = await GetTokenAsync( true ).
ConfigureAwait
(false);
405
if ( await GetTokenAsync( true ).
ConfigureAwait
(false) != Token.LeftParen ) {
410
if ( await GetTokenAsync( false ).
ConfigureAwait
(false) != Token.Name ) {
425
switch ( await GetTokenAsync( false ).
ConfigureAwait
(false) ) {
427
if ( await GetTokenAsync( false ).
ConfigureAwait
(false) != Token.Name ) {
445
if ( await GetTokenAsync( false ).
ConfigureAwait
(false) != Token.Nmtoken )
452
switch ( await GetTokenAsync( false ).
ConfigureAwait
(false) ) {
454
if ( await GetTokenAsync( false ).
ConfigureAwait
(false) != Token.Nmtoken )
480
switch ( await GetTokenAsync( true ).
ConfigureAwait
(false) ) {
489
if ( await GetTokenAsync( true ).
ConfigureAwait
(false) != Token.Literal ) {
526
if ( await GetTokenAsync( true ).
ConfigureAwait
(false) != Token.QName ) {
574
switch ( await GetTokenAsync( true ).
ConfigureAwait
(false) ) {
583
switch ( await GetTokenAsync( false ).
ConfigureAwait
(false) ) {
615
if ( await GetTokenAsync( false ).
ConfigureAwait
(false) != Token.GreaterThan ) {
744
switch ( await GetTokenAsync( false ).
ConfigureAwait
(false) ) {
772
switch ( await GetTokenAsync( false ).
ConfigureAwait
(false) ) {
819
switch ( await GetTokenAsync( false ).
ConfigureAwait
(false) ) {
840
switch ( await GetTokenAsync( false ).
ConfigureAwait
(false) ) {
846
if ( await GetTokenAsync( false ).
ConfigureAwait
(false) == Token.Star && hasNames ) {
867
if ( await GetTokenAsync( false ).
ConfigureAwait
(false) != Token.QName ) {
897
switch ( await GetTokenAsync( true ).
ConfigureAwait
(false) ) {
900
if ( await GetTokenAsync( true ).
ConfigureAwait
(false) != Token.Name ) {
929
Token token = await GetTokenAsync( true ).
ConfigureAwait
(false);
936
var tuple_1 = await ParseExternalIdAsync( token, Token.EntityDecl).
ConfigureAwait
(false);
944
if ( await GetTokenAsync( false ).
ConfigureAwait
(false) == Token.NData ) {
952
if ( await GetTokenAsync( true ).
ConfigureAwait
(false) != Token.Name ) {
974
if ( await GetTokenAsync( false ).
ConfigureAwait
(false) == Token.GreaterThan ) {
985
if ( await GetTokenAsync( true ).
ConfigureAwait
(false) != Token.Name ) {
1009
Token token = await GetTokenAsync( true ).
ConfigureAwait
(false);
1013
var tuple_2 = await ParseExternalIdAsync( token, Token.NOTATION).
ConfigureAwait
(false);
1028
if ( await GetTokenAsync( false ).
ConfigureAwait
(false) != Token.GreaterThan )
1073
switch ( await GetTokenAsync( false ).
ConfigureAwait
(false) ) {
1075
if ( await GetTokenAsync( false ).
ConfigureAwait
(false) != Token.LeftBracket ) {
1097
if ( await GetTokenAsync( false ).
ConfigureAwait
(false) != Token.LeftBracket ) {
1106
if ( await GetTokenAsync( false ).
ConfigureAwait
(false) != Token.CondSectionEnd ) {
1130
if ( await GetTokenAsync( true ).
ConfigureAwait
(false) != Token.Literal ) {
1160
if ( await GetTokenAsync( false ).
ConfigureAwait
(false) == Token.Literal ) {
1173
if ( await GetTokenAsync( false ).
ConfigureAwait
(false) == Token.Literal ) {
1241
await HandleEntityReferenceAsync( true, false, false ).
ConfigureAwait
(false);
1253
case ScanningFunction.Name: return await ScanNameExpectedAsync().
ConfigureAwait
(false);
1254
case ScanningFunction.QName: return await ScanQNameExpectedAsync().
ConfigureAwait
(false);
1255
case ScanningFunction.Nmtoken: return await ScanNmtokenExpectedAsync().
ConfigureAwait
(false);
1256
case ScanningFunction.SubsetContent: return await ScanSubsetContentAsync().
ConfigureAwait
(false);
1257
case ScanningFunction.Doctype1: return await ScanDoctype1Async().
ConfigureAwait
(false);
1259
case ScanningFunction.Element1: return await ScanElement1Async().
ConfigureAwait
(false);
1260
case ScanningFunction.Element2: return await ScanElement2Async().
ConfigureAwait
(false);
1261
case ScanningFunction.Element3: return await ScanElement3Async().
ConfigureAwait
(false);
1266
case ScanningFunction.Attlist1: return await ScanAttlist1Async().
ConfigureAwait
(false);
1267
case ScanningFunction.Attlist2: return await ScanAttlist2Async().
ConfigureAwait
(false);
1271
case ScanningFunction.Attlist6: return await ScanAttlist6Async().
ConfigureAwait
(false);
1273
case ScanningFunction.Notation1: return await ScanNotation1Async().
ConfigureAwait
(false);
1274
case ScanningFunction.SystemId: return await ScanSystemIdAsync().
ConfigureAwait
(false);
1275
case ScanningFunction.PublicId1: return await ScanPublicId1Async().
ConfigureAwait
(false);
1276
case ScanningFunction.PublicId2: return await ScanPublicId2Async().
ConfigureAwait
(false);
1277
case ScanningFunction.Entity1: return await ScanEntity1Async().
ConfigureAwait
(false);
1278
case ScanningFunction.Entity2: return await ScanEntity2Async().
ConfigureAwait
(false);
1279
case ScanningFunction.Entity3: return await ScanEntity3Async().
ConfigureAwait
(false);
1280
case ScanningFunction.CondSection1: return await ScanCondSection1Async().
ConfigureAwait
(false);
1282
case ScanningFunction.CondSection3: return await ScanCondSection3Async().
ConfigureAwait
(false);
1294
if ( readerAdapter.IsEof || await ReadDataAsync().
ConfigureAwait
(false) == 0 ) {
1439
if ( await ReadDataAsync().
ConfigureAwait
(false) == 0 ) {
1466
if ( !await EatPublicKeywordAsync().
ConfigureAwait
(false) ) {
1473
if ( !await EatSystemKeywordAsync().
ConfigureAwait
(false) ) {
1526
if ( await ReadDataAsync().
ConfigureAwait
(false) == 0 ) {
1535
if ( await ReadDataAsync().
ConfigureAwait
(false) == 0 ) {
1694
if ( await ReadDataAsync().
ConfigureAwait
(false) == 0 ) {
1705
await ScanLiteralAsync( LiteralType.AttributeValue ).
ConfigureAwait
(false);
1753
if ( await ReadDataAsync().
ConfigureAwait
(false) == 0 ) {
1870
await HandleEntityReferenceAsync( true, true, literalType == LiteralType.AttributeValue ).
ConfigureAwait
(false);
1885
int endPos = await readerAdapter.ParseNumericCharRefAsync( SaveInternalSubsetValue ? internalSubsetValueSb : null ).
ConfigureAwait
(false);
1897
int endPos = await readerAdapter.ParseNamedCharRefAsync( true, SaveInternalSubsetValue ? internalSubsetValueSb : null ).
ConfigureAwait
(false);
1908
await HandleEntityReferenceAsync( false, true, true ).
ConfigureAwait
(false);
1914
int endPos = await readerAdapter.ParseNamedCharRefAsync( false, null ).
ConfigureAwait
(false);
1960
if ( readerAdapter.IsEof || await ReadDataAsync().
ConfigureAwait
(false) == 0 ) {
1972
if ( !await EatPublicKeywordAsync().
ConfigureAwait
(false) ) {
1979
if ( !await EatSystemKeywordAsync().
ConfigureAwait
(false) ) {
1996
await ScanLiteralAsync( LiteralType.SystemOrPublicID ).
ConfigureAwait
(false);
2019
if ( !await EatPublicKeywordAsync().
ConfigureAwait
(false) ) {
2026
if ( !await EatSystemKeywordAsync().
ConfigureAwait
(false) ) {
2035
await ScanLiteralAsync( LiteralType.EntityReplText ).
ConfigureAwait
(false);
2047
if ( await ReadDataAsync().
ConfigureAwait
(false) == 0 ) {
2069
await ScanLiteralAsync( LiteralType.SystemOrPublicID ).
ConfigureAwait
(false);
2081
await ScanLiteralAsync( LiteralType.SystemOrPublicID ).
ConfigureAwait
(false);
2134
if ( await ReadDataAsync().
ConfigureAwait
(false) == 0 ) {
2236
if ( readerAdapter.IsEof || await ReadDataAsync().
ConfigureAwait
(false) == 0 ) {
2286
if (await ReadDataInNameAsync().
ConfigureAwait
(false)) {
2334
if ( await ReadDataInNameAsync().
ConfigureAwait
(false) ) {
2350
bool newDataRead = ( await ReadDataAsync().
ConfigureAwait
(false) != 0 );
2394
if ( await ReadDataAsync().
ConfigureAwait
(false) == 0 ) {
2410
if ( await ReadDataAsync().
ConfigureAwait
(false) == 0 ) {
2426
if ( await ReadDataAsync().
ConfigureAwait
(false) == 0 ) {
2444
int charsRead = await readerAdapter.ReadDataAsync().
ConfigureAwait
(false);
2479
var tuple_3 = await readerAdapter.PushEntityAsync( entity).
ConfigureAwait
(false);
2493
var tuple_4 = await readerAdapter.PushEntityAsync( entity).
ConfigureAwait
(false);
System\Xml\Schema\ParserAsync.cs (2)
17
while(ParseReaderNode() && await reader.ReadAsync().
ConfigureAwait
(false)) {}
32
while (reader.NodeType != XmlNodeType.Element && await reader.ReadAsync().
ConfigureAwait
(false)) {}
System\Xml\XmlDownloadManagerAsync.cs (1)
43
WebResponse resp = await Task<WebResponse>.Factory.FromAsync(req.BeginGetResponse, req.EndGetResponse, null).
ConfigureAwait
(false);
System\Xml\XmlUrlResolverAsync.cs (1)
14
return await DownloadManager.GetStreamAsync(absoluteUri, _credentials, _proxy, _cachePolicy).
ConfigureAwait
(false);