You've already forked linux-packaging-mono
Imported Upstream version 5.4.0.167
Former-commit-id: 5624ac747d633e885131e8349322922b6a59baaa
This commit is contained in:
parent
e49d6f06c0
commit
536cd135cc
@ -293,7 +293,7 @@ namespace System.ServiceModel.Channels
|
||||
}
|
||||
}
|
||||
|
||||
// [....], This will be kept internal for now. If the optimization needs to be public, we'll re-evaluate it.
|
||||
// Microsoft, This will be kept internal for now. If the optimization needs to be public, we'll re-evaluate it.
|
||||
class DictionaryAddressHeader : XmlObjectSerializerAddressHeader
|
||||
{
|
||||
XmlDictionaryString name;
|
||||
|
@ -70,7 +70,7 @@ namespace System.ServiceModel.Channels
|
||||
|
||||
for (int i = 0; i < InternalCount; i++)
|
||||
{
|
||||
#pragma warning suppress 56506 // [....], Message.Headers can never be null
|
||||
#pragma warning suppress 56506 // Microsoft, Message.Headers can never be null
|
||||
message.Headers.Add(this[i].ToMessageHeader());
|
||||
}
|
||||
}
|
||||
|
@ -1667,7 +1667,7 @@ namespace System.ServiceModel.Channels
|
||||
get
|
||||
{
|
||||
if (IsDisposed)
|
||||
#pragma warning suppress 56503 // [....], Invalid State after dispose
|
||||
#pragma warning suppress 56503 // Microsoft, Invalid State after dispose
|
||||
|
||||
{
|
||||
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateMessageDisposedException());
|
||||
@ -1681,7 +1681,7 @@ namespace System.ServiceModel.Channels
|
||||
get
|
||||
{
|
||||
if (IsDisposed)
|
||||
#pragma warning suppress 56503 // [....], Invalid State after dispose
|
||||
#pragma warning suppress 56503 // Microsoft, Invalid State after dispose
|
||||
|
||||
{
|
||||
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateMessageDisposedException());
|
||||
@ -1690,13 +1690,23 @@ namespace System.ServiceModel.Channels
|
||||
}
|
||||
}
|
||||
|
||||
internal override void SetProperty(string name, object value)
|
||||
{
|
||||
MessageProperties prop = this.properties;
|
||||
|
||||
if (prop != null)
|
||||
{
|
||||
prop[name] = value;
|
||||
}
|
||||
}
|
||||
|
||||
public override MessageVersion Version
|
||||
{
|
||||
get
|
||||
{
|
||||
if (IsDisposed)
|
||||
{
|
||||
#pragma warning suppress 56503 // [....], Invalid State after dispose
|
||||
#pragma warning suppress 56503 // Microsoft, Invalid State after dispose
|
||||
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateMessageDisposedException());
|
||||
}
|
||||
return headers.MessageVersion;
|
||||
|
@ -27,8 +27,8 @@ namespace System.ServiceModel.Channels
|
||||
///
|
||||
/// Currently BufferedOutputAsyncStream only used to wrap the System.Net.HttpResponseStream, which satisfy both requirements.
|
||||
///
|
||||
/// BufferedOutputAsyncStream can also be used when doing asynchronous operations. [....] operations are not allowed when an async
|
||||
/// operation is in-flight. If a [....] operation is in progress (i.e., data exists in our CurrentBuffer) and we issue an async operation,
|
||||
/// BufferedOutputAsyncStream can also be used when doing asynchronous operations. Sync operations are not allowed when an async
|
||||
/// operation is in-flight. If a sync operation is in progress (i.e., data exists in our CurrentBuffer) and we issue an async operation,
|
||||
/// we flush everything in the buffers (and block while doing so) before the async operation is allowed to proceed.
|
||||
///
|
||||
/// </summary>
|
||||
@ -78,7 +78,7 @@ namespace System.ServiceModel.Channels
|
||||
{
|
||||
get
|
||||
{
|
||||
#pragma warning suppress 56503 // [....], required by the Stream.Length contract
|
||||
#pragma warning suppress 56503 // Microsoft, required by the Stream.Length contract
|
||||
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.ReadNotSupported)));
|
||||
}
|
||||
}
|
||||
@ -87,7 +87,7 @@ namespace System.ServiceModel.Channels
|
||||
{
|
||||
get
|
||||
{
|
||||
#pragma warning suppress 56503 // [....], required by the Stream.Position contract
|
||||
#pragma warning suppress 56503 // Microsoft, required by the Stream.Position contract
|
||||
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.SeekNotSupported)));
|
||||
}
|
||||
set
|
||||
@ -335,7 +335,7 @@ namespace System.ServiceModel.Channels
|
||||
void DequeueAndFlush(ByteBuffer currentBuffer, AsyncEventArgsCallback callback)
|
||||
{
|
||||
// Dequeue does a checkout of the buffer from its slot.
|
||||
// the callback for the [....] path only enqueues the buffer.
|
||||
// the callback for the sync path only enqueues the buffer.
|
||||
// The WriteAsync callback needs to enqueue and also complete.
|
||||
this.currentByteBuffer = null;
|
||||
ByteBuffer dequeued = this.buffers.Dequeue();
|
||||
@ -756,7 +756,7 @@ namespace System.ServiceModel.Channels
|
||||
buffer.stream.EndWrite(result);
|
||||
|
||||
}
|
||||
#pragma warning suppress 56500 // [....], transferring exception to another thread
|
||||
#pragma warning suppress 56500 // Microsoft, transferring exception to another thread
|
||||
catch (Exception e)
|
||||
{
|
||||
if (Fx.IsFatal(e))
|
||||
|
@ -86,7 +86,7 @@ namespace System.ServiceModel.Channels
|
||||
else
|
||||
{
|
||||
//
|
||||
#pragma warning suppress 56506 // [....], context.Binding will never be null.
|
||||
#pragma warning suppress 56506 // Microsoft, context.Binding will never be null.
|
||||
context.ListenUriRelativeAddress = String.Empty;
|
||||
context.ListenUriMode = ListenUriMode.Unique;
|
||||
}
|
||||
|
@ -338,7 +338,7 @@ namespace System.ServiceModel.Channels
|
||||
{
|
||||
get
|
||||
{
|
||||
#pragma warning suppress 56503 // [....], required by the Stream.Length contract
|
||||
#pragma warning suppress 56503 // Microsoft, required by the Stream.Length contract
|
||||
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.SeekNotSupported)));
|
||||
}
|
||||
}
|
||||
@ -347,7 +347,7 @@ namespace System.ServiceModel.Channels
|
||||
{
|
||||
get
|
||||
{
|
||||
#pragma warning suppress 56503 // [....], required by the Stream.Position contract
|
||||
#pragma warning suppress 56503 // Microsoft, required by the Stream.Position contract
|
||||
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.SeekNotSupported)));
|
||||
}
|
||||
set
|
||||
@ -470,7 +470,7 @@ namespace System.ServiceModel.Channels
|
||||
{
|
||||
thisPtr.HandleIO(thisPtr.connection);
|
||||
}
|
||||
#pragma warning suppress 56500 // [....], transferring exception to another thread
|
||||
#pragma warning suppress 56500 // Microsoft, transferring exception to another thread
|
||||
catch (Exception e)
|
||||
{
|
||||
if (Fx.IsFatal(e))
|
||||
|
@ -554,7 +554,7 @@ namespace System.ServiceModel.Channels
|
||||
IConnection upgradedConnection = this.serverSingletonPreambleReader.EndCompletePreamble(result);
|
||||
ServerSingletonConnectionReader singletonReader = new ServerSingletonConnectionReader(serverSingletonPreambleReader, upgradedConnection, this.demuxer);
|
||||
|
||||
//singletonReader doesn't have async version of ReceiveRequest, so just call the [....] method for now.
|
||||
//singletonReader doesn't have async version of ReceiveRequest, so just call the sync method for now.
|
||||
RequestContext requestContext = singletonReader.ReceiveRequest(this.timeoutHelper.RemainingTime());
|
||||
singletonChannelListener.ReceiveRequest(requestContext, serverSingletonPreambleReader.ConnectionDequeuedCallback, true);
|
||||
|
||||
|
@ -134,7 +134,7 @@ namespace System.ServiceModel.Channels
|
||||
completeSelf = reader.ContinueReading();
|
||||
}
|
||||
}
|
||||
#pragma warning suppress 56500 // [....], transferring exception to caller
|
||||
#pragma warning suppress 56500 // Microsoft, transferring exception to caller
|
||||
catch (Exception e)
|
||||
{
|
||||
if (Fx.IsFatal(e))
|
||||
@ -201,7 +201,7 @@ namespace System.ServiceModel.Channels
|
||||
{
|
||||
completeSelf = ContinueReading();
|
||||
}
|
||||
#pragma warning suppress 56500 // [....], transferring exception to caller
|
||||
#pragma warning suppress 56500 // Microsoft, transferring exception to caller
|
||||
catch (Exception e)
|
||||
{
|
||||
if (Fx.IsFatal(e))
|
||||
|
@ -1213,7 +1213,7 @@ namespace System.ServiceModel.Channels
|
||||
{
|
||||
completeSelf = thisPtr.HandleConnect(result);
|
||||
}
|
||||
#pragma warning suppress 56500 // [....], transferring exception to another thread
|
||||
#pragma warning suppress 56500 // Microsoft, transferring exception to another thread
|
||||
catch (Exception e)
|
||||
{
|
||||
if (Fx.IsFatal(e))
|
||||
@ -1292,7 +1292,7 @@ namespace System.ServiceModel.Channels
|
||||
thisPtr.SnapshotConnection();
|
||||
}
|
||||
}
|
||||
#pragma warning suppress 56500 // [....], transferring exception to another thread
|
||||
#pragma warning suppress 56500 // Microsoft, transferring exception to another thread
|
||||
catch (Exception e)
|
||||
{
|
||||
if (Fx.IsFatal(e))
|
||||
|
@ -28,7 +28,7 @@ namespace System.ServiceModel.Channels
|
||||
{
|
||||
if (IsDisposed)
|
||||
{
|
||||
#pragma warning suppress 56503 // [....], required by base class contract
|
||||
#pragma warning suppress 56503 // Microsoft, required by base class contract
|
||||
throw TraceUtility.ThrowHelperError(CreateMessageDisposedException(), this);
|
||||
}
|
||||
|
||||
@ -42,7 +42,7 @@ namespace System.ServiceModel.Channels
|
||||
{
|
||||
if (IsDisposed)
|
||||
{
|
||||
#pragma warning suppress 56503 // [....], required by base class contract
|
||||
#pragma warning suppress 56503 // Microsoft, required by base class contract
|
||||
throw TraceUtility.ThrowHelperError(CreateMessageDisposedException(), this);
|
||||
}
|
||||
|
||||
|
@ -641,7 +641,7 @@ namespace System.ServiceModel.Channels
|
||||
{
|
||||
completeSelf = thisPtr.HandleWritePreamble();
|
||||
}
|
||||
#pragma warning suppress 56500 // [....], transferring exception to another thread
|
||||
#pragma warning suppress 56500 // Microsoft, transferring exception to another thread
|
||||
catch (Exception e)
|
||||
{
|
||||
if (Fx.IsFatal(e))
|
||||
@ -669,7 +669,7 @@ namespace System.ServiceModel.Channels
|
||||
{
|
||||
completeSelf = thisPtr.HandlePreambleAck();
|
||||
}
|
||||
#pragma warning suppress 56500 // [....], transferring exception to another thread
|
||||
#pragma warning suppress 56500 // Microsoft, transferring exception to another thread
|
||||
catch (Exception e)
|
||||
{
|
||||
if (Fx.IsFatal(e))
|
||||
@ -702,7 +702,7 @@ namespace System.ServiceModel.Channels
|
||||
{
|
||||
completeSelf = thisPtr.HandleInitiatorOpen(result);
|
||||
}
|
||||
#pragma warning suppress 56500 // [....], transferring exception to another thread
|
||||
#pragma warning suppress 56500 // Microsoft, transferring exception to another thread
|
||||
catch (Exception e)
|
||||
{
|
||||
if (Fx.IsFatal(e))
|
||||
@ -735,7 +735,7 @@ namespace System.ServiceModel.Channels
|
||||
{
|
||||
completeSelf = thisPtr.HandleUpgrade(result);
|
||||
}
|
||||
#pragma warning suppress 56500 // [....], transferring exception to another thread
|
||||
#pragma warning suppress 56500 // Microsoft, transferring exception to another thread
|
||||
catch (Exception e)
|
||||
{
|
||||
if (Fx.IsFatal(e))
|
||||
@ -768,7 +768,7 @@ namespace System.ServiceModel.Channels
|
||||
{
|
||||
completeSelf = thisPtr.HandleInitiatorClose(result);
|
||||
}
|
||||
#pragma warning suppress 56500 // [....], transferring exception to another thread
|
||||
#pragma warning suppress 56500 // Microsoft, transferring exception to another thread
|
||||
catch (Exception e)
|
||||
{
|
||||
if (Fx.IsFatal(e))
|
||||
@ -796,7 +796,7 @@ namespace System.ServiceModel.Channels
|
||||
thisPtr.connection.EndWrite();
|
||||
completeSelf = thisPtr.ReadAck();
|
||||
}
|
||||
#pragma warning suppress 56500 // [....], transferring exception to another thread
|
||||
#pragma warning suppress 56500 // Microsoft, transferring exception to another thread
|
||||
catch (Exception e)
|
||||
{
|
||||
if (Fx.IsFatal(e))
|
||||
@ -826,7 +826,7 @@ namespace System.ServiceModel.Channels
|
||||
{
|
||||
ConnectionUpgradeHelper.EndDecodeFramingFault(result);
|
||||
}
|
||||
#pragma warning suppress 56500 // [....], transferring exception to another thread
|
||||
#pragma warning suppress 56500 // Microsoft, transferring exception to another thread
|
||||
catch (Exception e)
|
||||
{
|
||||
if (Fx.IsFatal(e))
|
||||
@ -913,7 +913,7 @@ namespace System.ServiceModel.Channels
|
||||
{
|
||||
completeSelf = thisPtr.HandleEstablishConnection(result);
|
||||
}
|
||||
#pragma warning suppress 56500 // [....], transferring exception to another thread
|
||||
#pragma warning suppress 56500 // Microsoft, transferring exception to another thread
|
||||
catch (Exception e)
|
||||
{
|
||||
if (Fx.IsFatal(e))
|
||||
@ -1172,7 +1172,7 @@ namespace System.ServiceModel.Channels
|
||||
{
|
||||
thisPtr.CompleteReadFaultData();
|
||||
}
|
||||
#pragma warning suppress 56500 // [....], transferring exception to another thread
|
||||
#pragma warning suppress 56500 // Microsoft, transferring exception to another thread
|
||||
catch (Exception e)
|
||||
{
|
||||
if (Fx.IsFatal(e))
|
||||
@ -1335,7 +1335,7 @@ namespace System.ServiceModel.Channels
|
||||
completeSelf = thisPtr.Begin();
|
||||
}
|
||||
}
|
||||
#pragma warning suppress 56500 // [....], transferring exception to another thread
|
||||
#pragma warning suppress 56500 // Microsoft, transferring exception to another thread
|
||||
catch (Exception e)
|
||||
{
|
||||
if (Fx.IsFatal(e))
|
||||
@ -1366,7 +1366,7 @@ namespace System.ServiceModel.Channels
|
||||
{
|
||||
ConnectionUpgradeHelper.EndDecodeFramingFault(result);
|
||||
}
|
||||
#pragma warning suppress 56500 // [....], transferring exception to another thread
|
||||
#pragma warning suppress 56500 // Microsoft, transferring exception to another thread
|
||||
catch (Exception e)
|
||||
{
|
||||
if (Fx.IsFatal(e))
|
||||
@ -1392,7 +1392,7 @@ namespace System.ServiceModel.Channels
|
||||
completeSelf = thisPtr.Begin();
|
||||
}
|
||||
}
|
||||
#pragma warning suppress 56500 // [....], transferring exception to another thread
|
||||
#pragma warning suppress 56500 // Microsoft, transferring exception to another thread
|
||||
catch (Exception e)
|
||||
{
|
||||
if (Fx.IsFatal(e))
|
||||
@ -1423,7 +1423,7 @@ namespace System.ServiceModel.Channels
|
||||
thisPtr.CompleteUpgrade(result);
|
||||
completeSelf = thisPtr.Begin();
|
||||
}
|
||||
#pragma warning suppress 56500 // [....], transferring exception to another thread
|
||||
#pragma warning suppress 56500 // Microsoft, transferring exception to another thread
|
||||
catch (Exception e)
|
||||
{
|
||||
if (Fx.IsFatal(e))
|
||||
|
@ -32,7 +32,7 @@ namespace System.ServiceModel.Channels
|
||||
get
|
||||
{
|
||||
if (!isValueDecoded)
|
||||
#pragma warning suppress 56503 // [....], not a publicly accessible API
|
||||
#pragma warning suppress 56503 // Microsoft, not a publicly accessible API
|
||||
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.FramingValueNotAvailable)));
|
||||
return value;
|
||||
}
|
||||
@ -108,7 +108,7 @@ namespace System.ServiceModel.Channels
|
||||
get
|
||||
{
|
||||
if (currentState != State.Done)
|
||||
#pragma warning suppress 56503 // [....], not a publicly accessible API
|
||||
#pragma warning suppress 56503 // Microsoft, not a publicly accessible API
|
||||
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.FramingValueNotAvailable)));
|
||||
return value;
|
||||
}
|
||||
@ -236,7 +236,7 @@ namespace System.ServiceModel.Channels
|
||||
get
|
||||
{
|
||||
if (!IsValueDecoded)
|
||||
#pragma warning suppress 56503 // [....], not a publicly accessible API
|
||||
#pragma warning suppress 56503 // Microsoft, not a publicly accessible API
|
||||
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.FramingValueNotAvailable)));
|
||||
return via;
|
||||
}
|
||||
@ -544,7 +544,7 @@ namespace System.ServiceModel.Channels
|
||||
get
|
||||
{
|
||||
if (currentState != State.Done)
|
||||
#pragma warning suppress 56503 // [....], not a publicly accessible API
|
||||
#pragma warning suppress 56503 // Microsoft, not a publicly accessible API
|
||||
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.FramingValueNotAvailable)));
|
||||
return mode;
|
||||
}
|
||||
@ -555,7 +555,7 @@ namespace System.ServiceModel.Channels
|
||||
get
|
||||
{
|
||||
if (currentState != State.Done)
|
||||
#pragma warning suppress 56503 // [....], not a publicly accessible API
|
||||
#pragma warning suppress 56503 // Microsoft, not a publicly accessible API
|
||||
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.FramingValueNotAvailable)));
|
||||
return majorVersion;
|
||||
}
|
||||
@ -566,7 +566,7 @@ namespace System.ServiceModel.Channels
|
||||
get
|
||||
{
|
||||
if (currentState != State.Done)
|
||||
#pragma warning suppress 56503 // [....], not a publicly accessible API
|
||||
#pragma warning suppress 56503 // Microsoft, not a publicly accessible API
|
||||
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.FramingValueNotAvailable)));
|
||||
return minorVersion;
|
||||
}
|
||||
@ -624,7 +624,7 @@ namespace System.ServiceModel.Channels
|
||||
get
|
||||
{
|
||||
if (currentState < State.PreUpgradeStart)
|
||||
#pragma warning suppress 56503 // [....], not a publicly accessible API
|
||||
#pragma warning suppress 56503 // Microsoft, not a publicly accessible API
|
||||
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.FramingValueNotAvailable)));
|
||||
return contentType;
|
||||
}
|
||||
@ -635,7 +635,7 @@ namespace System.ServiceModel.Channels
|
||||
get
|
||||
{
|
||||
if (currentState < State.ReadingContentTypeRecord)
|
||||
#pragma warning suppress 56503 // [....], not a publicly accessible API
|
||||
#pragma warning suppress 56503 // Microsoft, not a publicly accessible API
|
||||
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.FramingValueNotAvailable)));
|
||||
return viaDecoder.ValueAsUri;
|
||||
}
|
||||
@ -652,7 +652,7 @@ namespace System.ServiceModel.Channels
|
||||
get
|
||||
{
|
||||
if (currentState != State.UpgradeRequest)
|
||||
#pragma warning suppress 56503 // [....], not a publicly accessible API
|
||||
#pragma warning suppress 56503 // Microsoft, not a publicly accessible API
|
||||
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.FramingValueNotAvailable)));
|
||||
return upgrade;
|
||||
}
|
||||
@ -663,7 +663,7 @@ namespace System.ServiceModel.Channels
|
||||
get
|
||||
{
|
||||
if (currentState < State.EnvelopeStart)
|
||||
#pragma warning suppress 56503 // [....], not a publicly accessible API
|
||||
#pragma warning suppress 56503 // Microsoft, not a publicly accessible API
|
||||
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.FramingValueNotAvailable)));
|
||||
return envelopeSize;
|
||||
}
|
||||
@ -880,7 +880,7 @@ namespace System.ServiceModel.Channels
|
||||
{
|
||||
if (currentState < State.ChunkStart)
|
||||
{
|
||||
#pragma warning suppress 56503 // [....], not a publicly accessible API
|
||||
#pragma warning suppress 56503 // Microsoft, not a publicly accessible API
|
||||
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.FramingValueNotAvailable)));
|
||||
}
|
||||
|
||||
@ -1009,7 +1009,7 @@ namespace System.ServiceModel.Channels
|
||||
get
|
||||
{
|
||||
if (currentState < State.ReadingContentTypeRecord)
|
||||
#pragma warning suppress 56503 // [....], not a publicly accessible API
|
||||
#pragma warning suppress 56503 // Microsoft, not a publicly accessible API
|
||||
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.FramingValueNotAvailable)));
|
||||
return viaDecoder.ValueAsUri;
|
||||
}
|
||||
@ -1020,7 +1020,7 @@ namespace System.ServiceModel.Channels
|
||||
get
|
||||
{
|
||||
if (currentState < State.PreUpgradeStart)
|
||||
#pragma warning suppress 56503 // [....], not a publicly accessible API
|
||||
#pragma warning suppress 56503 // Microsoft, not a publicly accessible API
|
||||
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.FramingValueNotAvailable)));
|
||||
return contentType;
|
||||
}
|
||||
@ -1031,7 +1031,7 @@ namespace System.ServiceModel.Channels
|
||||
get
|
||||
{
|
||||
if (currentState != State.UpgradeRequest)
|
||||
#pragma warning suppress 56503 // [....], not a publicly accessible API
|
||||
#pragma warning suppress 56503 // Microsoft, not a publicly accessible API
|
||||
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.FramingValueNotAvailable)));
|
||||
return upgrade;
|
||||
}
|
||||
@ -1280,7 +1280,7 @@ namespace System.ServiceModel.Channels
|
||||
get
|
||||
{
|
||||
if (currentState < State.ReadingContentTypeRecord)
|
||||
#pragma warning suppress 56503 // [....], not a publicly accessible API
|
||||
#pragma warning suppress 56503 // Microsoft, not a publicly accessible API
|
||||
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.FramingValueNotAvailable)));
|
||||
return viaDecoder.ValueAsUri;
|
||||
}
|
||||
@ -1291,7 +1291,7 @@ namespace System.ServiceModel.Channels
|
||||
get
|
||||
{
|
||||
if (currentState < State.Start)
|
||||
#pragma warning suppress 56503 // [....], not a publicly accessible API
|
||||
#pragma warning suppress 56503 // Microsoft, not a publicly accessible API
|
||||
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.FramingValueNotAvailable)));
|
||||
return contentType;
|
||||
}
|
||||
@ -1386,7 +1386,7 @@ namespace System.ServiceModel.Channels
|
||||
get
|
||||
{
|
||||
if (CurrentState < ClientFramingDecoderState.EnvelopeStart)
|
||||
#pragma warning suppress 56503 // [....], not a publicly accessible API
|
||||
#pragma warning suppress 56503 // Microsoft, not a publicly accessible API
|
||||
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.FramingValueNotAvailable)));
|
||||
return envelopeSize;
|
||||
}
|
||||
@ -1397,7 +1397,7 @@ namespace System.ServiceModel.Channels
|
||||
get
|
||||
{
|
||||
if (CurrentState < ClientFramingDecoderState.Fault)
|
||||
#pragma warning suppress 56503 // [....], not a publicly accessible API
|
||||
#pragma warning suppress 56503 // Microsoft, not a publicly accessible API
|
||||
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.FramingValueNotAvailable)));
|
||||
return faultDecoder.Value;
|
||||
}
|
||||
@ -1543,7 +1543,7 @@ namespace System.ServiceModel.Channels
|
||||
get
|
||||
{
|
||||
if (CurrentState < ClientFramingDecoderState.Fault)
|
||||
#pragma warning suppress 56503 // [....], not a publicly accessible API
|
||||
#pragma warning suppress 56503 // Microsoft, not a publicly accessible API
|
||||
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.FramingValueNotAvailable)));
|
||||
return faultDecoder.Value;
|
||||
}
|
||||
|
@ -1496,7 +1496,7 @@ namespace System.ServiceModel.Channels
|
||||
{
|
||||
completeSelf = thisPtr.OnGetWebRequestCompleted(result);
|
||||
}
|
||||
#pragma warning suppress 56500 // [....], transferring exception to another thread
|
||||
#pragma warning suppress 56500 // Microsoft, transferring exception to another thread
|
||||
catch (Exception e)
|
||||
{
|
||||
if (Fx.IsFatal(e))
|
||||
@ -1810,7 +1810,7 @@ namespace System.ServiceModel.Channels
|
||||
{
|
||||
thisPtr.CompleteParseIncomingMessage(result);
|
||||
}
|
||||
#pragma warning suppress 56500 // [....], transferring exception to another thread
|
||||
#pragma warning suppress 56500 // Microsoft, transferring exception to another thread
|
||||
catch (Exception e)
|
||||
{
|
||||
if (Fx.IsFatal(e))
|
||||
@ -1837,7 +1837,7 @@ namespace System.ServiceModel.Channels
|
||||
{
|
||||
completeSelf = thisPtr.CompleteSend(result);
|
||||
}
|
||||
#pragma warning suppress 56500 // [....], transferring exception to another thread
|
||||
#pragma warning suppress 56500 // Microsoft, transferring exception to another thread
|
||||
catch (Exception e)
|
||||
{
|
||||
if (Fx.IsFatal(e))
|
||||
@ -1882,7 +1882,7 @@ namespace System.ServiceModel.Channels
|
||||
completeSelf = true;
|
||||
completionException = new CommunicationException(webException.Message, webException);
|
||||
}
|
||||
#pragma warning suppress 56500 // [....], transferring exception to another thread
|
||||
#pragma warning suppress 56500 // Microsoft, transferring exception to another thread
|
||||
catch (Exception e)
|
||||
{
|
||||
if (Fx.IsFatal(e))
|
||||
@ -2068,7 +2068,7 @@ namespace System.ServiceModel.Channels
|
||||
thisPtr.CompleteGetSspiCredential(result);
|
||||
thisPtr.CloseTokenProvidersIfRequired();
|
||||
}
|
||||
#pragma warning suppress 56500 // [....], transferring exception to another thread
|
||||
#pragma warning suppress 56500 // Microsoft, transferring exception to another thread
|
||||
catch (Exception e)
|
||||
{
|
||||
if (Fx.IsFatal(e))
|
||||
@ -2096,7 +2096,7 @@ namespace System.ServiceModel.Channels
|
||||
thisPtr.CompleteGetUserNameCredential(result);
|
||||
thisPtr.CloseTokenProvidersIfRequired();
|
||||
}
|
||||
#pragma warning suppress 56500 // [....], transferring exception to another thread
|
||||
#pragma warning suppress 56500 // Microsoft, transferring exception to another thread
|
||||
catch (Exception e)
|
||||
{
|
||||
if (Fx.IsFatal(e))
|
||||
|
@ -1 +1 @@
|
||||
5df21319d3d6e9046fc229fc5459ad17a351de9b
|
||||
f75afcecfbb098ab8e64e48b4a8271c6fff01664
|
@ -444,7 +444,7 @@ namespace System.ServiceModel.Channels
|
||||
bool lockTaken = false;
|
||||
try
|
||||
{
|
||||
// We need this lock only in [....] reply case. In this case, we hopped the thread in the request side, so it's possible to send the response here
|
||||
// We need this lock only in sync reply case. In this case, we hopped the thread in the request side, so it's possible to send the response here
|
||||
// before the TransportIntegrationHandler is ready on another thread (thus a race condition). So we use the lock here. In the incoming path, we won't
|
||||
// release the lock until the TransportIntegrationHandler is ready. Once we get the lock on the outgoing path, we can then call Wait() on this handler safely.
|
||||
Monitor.TryEnter(this.ThisLock, TimeoutHelper.ToMilliseconds(helper.RemainingTime()), ref lockTaken);
|
||||
@ -615,7 +615,7 @@ namespace System.ServiceModel.Channels
|
||||
this.cancellationTokenSource.Dispose();
|
||||
this.wasProcessInboundRequestSuccessful = true;
|
||||
//// shortcut scenario
|
||||
//// Currently we are always doing [....] send even async send is enabled.
|
||||
//// Currently we are always doing sync send even async send is enabled.
|
||||
this.SendAndClose(t.Result);
|
||||
}
|
||||
else if (this.isAsyncReply)
|
||||
|
@ -528,7 +528,7 @@ namespace System.ServiceModel.Channels
|
||||
}
|
||||
else
|
||||
{
|
||||
#pragma warning suppress 56506 // [....], BindingContext.BindingParameters cannot be null
|
||||
#pragma warning suppress 56506 // Microsoft, BindingContext.BindingParameters cannot be null
|
||||
if (context.BindingParameters.Find<MessageEncodingBindingElement>() == null)
|
||||
{
|
||||
context.BindingParameters.Add(new TextMessageEncodingBindingElement());
|
||||
@ -578,7 +578,7 @@ namespace System.ServiceModel.Channels
|
||||
|
||||
if (!this.CanBuildChannelFactory<TChannel>(context))
|
||||
{
|
||||
#pragma warning suppress 56506 // [....], context.Binding will never be null.
|
||||
#pragma warning suppress 56506 // Microsoft, context.Binding will never be null.
|
||||
throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("TChannel", SR.GetString(SR.CouldnTCreateChannelForChannelType2, context.Binding.Name, typeof(TChannel)));
|
||||
}
|
||||
|
||||
@ -649,7 +649,7 @@ namespace System.ServiceModel.Channels
|
||||
if (!this.CanBuildChannelListener<TChannel>(context))
|
||||
{
|
||||
throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(
|
||||
#pragma warning suppress 56506 // [....], context.Binding will never be null.
|
||||
#pragma warning suppress 56506 // Microsoft, context.Binding will never be null.
|
||||
"TChannel", SR.GetString(SR.CouldnTCreateChannelForChannelType2, context.Binding.Name, typeof(TChannel)));
|
||||
}
|
||||
|
||||
@ -672,7 +672,7 @@ namespace System.ServiceModel.Channels
|
||||
|
||||
if (effectiveAutheSchemes == AuthenticationSchemes.None)
|
||||
{
|
||||
#pragma warning suppress 56506 // [....], context.Binding will never be null.
|
||||
#pragma warning suppress 56506 // Microsoft, context.Binding will never be null.
|
||||
string bindingName = context.Binding.Name;
|
||||
|
||||
if (this.AuthenticationScheme == AuthenticationSchemes.None)
|
||||
|
@ -488,7 +488,7 @@ namespace System.ServiceModel.Channels
|
||||
thisPtr.request = thisPtr.httpsChannel.EndBaseGetWebRequest(result);
|
||||
thisPtr.factory.AddServerCertMappingOrSetRemoteCertificateValidationCallback(thisPtr.request, thisPtr.to);
|
||||
}
|
||||
#pragma warning suppress 56500 // [....], transferring exception to another thread
|
||||
#pragma warning suppress 56500 // Microsoft, transferring exception to another thread
|
||||
catch (Exception e)
|
||||
{
|
||||
if (Fx.IsFatal(e))
|
||||
@ -514,7 +514,7 @@ namespace System.ServiceModel.Channels
|
||||
thisPtr.OnGetToken(result);
|
||||
completeSelf = thisPtr.GetWebRequest();
|
||||
}
|
||||
#pragma warning suppress 56500 // [....], transferring exception to another thread
|
||||
#pragma warning suppress 56500 // Microsoft, transferring exception to another thread
|
||||
catch (Exception e)
|
||||
{
|
||||
if (Fx.IsFatal(e))
|
||||
|
@ -37,7 +37,7 @@ namespace System.ServiceModel.Channels
|
||||
|
||||
protected override void CloseItemAsync(TItem item, TimeSpan timeout)
|
||||
{
|
||||
// Default behavior is [....]. Derived classes can override.
|
||||
// Default behavior is sync. Derived classes can override.
|
||||
this.CloseItem(item, timeout);
|
||||
}
|
||||
|
||||
|
@ -404,7 +404,7 @@ namespace System.ServiceModel.Channels
|
||||
{
|
||||
thisPtr.CompleteAcceptUpgrade(result);
|
||||
}
|
||||
#pragma warning suppress 56500 // [....], transferring exception to another thread
|
||||
#pragma warning suppress 56500 // Microsoft, transferring exception to another thread
|
||||
catch (Exception e)
|
||||
{
|
||||
if (Fx.IsFatal(e))
|
||||
|
@ -223,7 +223,7 @@ namespace System.ServiceModel.Channels
|
||||
{
|
||||
thisPtr.HandleReceiveComplete(result);
|
||||
}
|
||||
#pragma warning suppress 56500 // [....], transferring exception to another thread
|
||||
#pragma warning suppress 56500 // Microsoft, transferring exception to another thread
|
||||
catch (Exception e)
|
||||
{
|
||||
if (Fx.IsFatal(e))
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user