Imported Upstream version 5.4.0.167

Former-commit-id: 5624ac747d633e885131e8349322922b6a59baaa
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2017-08-21 15:34:15 +00:00
parent e49d6f06c0
commit 536cd135cc
12856 changed files with 563812 additions and 223249 deletions

View File

@ -19,7 +19,7 @@ namespace System.ServiceModel.Activation.Configuration
{
throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("config");
}
#pragma warning suppress 56506 // [....], Configuration.SectionGroups cannot be null
#pragma warning suppress 56506 // Microsoft, Configuration.SectionGroups cannot be null
return (ServiceModelActivationSectionGroup)config.SectionGroups[ConfigurationStrings.SectionGroupName];
}

View File

@ -279,7 +279,7 @@ namespace System.ServiceModel.Activation
override protected bool ReleaseHandle()
{
#pragma warning suppress 56523 // [....], should only fail if there is a bug (invalid handle); MDA will be raised
#pragma warning suppress 56523 // Microsoft, should only fail if there is a bug (invalid handle); MDA will be raised
return ListenerUnsafeNativeMethods.CloseServiceHandle(handle);
}
}

View File

@ -33,7 +33,7 @@ namespace System.ServiceModel.Activation
static SafeCloseHandle OpenCurrentProcessForWrite()
{
int processId = Process.GetCurrentProcess().Id;
#pragma warning suppress 56523 // [....], Win32Exception ctor calls Marshal.GetLastWin32Error()
#pragma warning suppress 56523 // Microsoft, Win32Exception ctor calls Marshal.GetLastWin32Error()
SafeCloseHandle process = ListenerUnsafeNativeMethods.OpenProcess(ListenerUnsafeNativeMethods.PROCESS_QUERY_INFORMATION | ListenerUnsafeNativeMethods.WRITE_DAC | ListenerUnsafeNativeMethods.READ_CONTROL, false, processId);
if (process.IsInvalid)
{
@ -46,7 +46,7 @@ namespace System.ServiceModel.Activation
static SafeCloseHandle OpenProcessForQuery(int pid)
{
#pragma warning suppress 56523 // [....], Win32Exception ctor calls Marshal.GetLastWin32Error()
#pragma warning suppress 56523 // Microsoft, Win32Exception ctor calls Marshal.GetLastWin32Error()
SafeCloseHandle process = ListenerUnsafeNativeMethods.OpenProcess(ListenerUnsafeNativeMethods.PROCESS_QUERY_INFORMATION, false, pid);
if (process.IsInvalid)
{
@ -99,7 +99,7 @@ namespace System.ServiceModel.Activation
static SafeServiceHandle OpenSCManager()
{
#pragma warning suppress 56523 // [....], Win32Exception ctor calls Marshal.GetLastWin32Error()
#pragma warning suppress 56523 // Microsoft, Win32Exception ctor calls Marshal.GetLastWin32Error()
SafeServiceHandle scManager = ListenerUnsafeNativeMethods.OpenSCManager(null, null, ListenerUnsafeNativeMethods.SC_MANAGER_CONNECT);
if (scManager.IsInvalid)
{
@ -112,7 +112,7 @@ namespace System.ServiceModel.Activation
static SafeServiceHandle OpenService(SafeServiceHandle scManager, string serviceName, int purpose)
{
#pragma warning suppress 56523 // [....], Win32Exception ctor calls Marshal.GetLastWin32Error()
#pragma warning suppress 56523 // Microsoft, Win32Exception ctor calls Marshal.GetLastWin32Error()
SafeServiceHandle service = ListenerUnsafeNativeMethods.OpenService(scManager, serviceName, purpose);
if (service.IsInvalid)
{
@ -249,7 +249,7 @@ namespace System.ServiceModel.Activation
}
}
byte[] pSecurityDescriptor = new byte[lpnLengthNeeded];
#pragma warning suppress 56523 // [....], Win32Exception ctor calls Marshal.GetLastWin32Error()
#pragma warning suppress 56523 // Microsoft, Win32Exception ctor calls Marshal.GetLastWin32Error()
success = ListenerUnsafeNativeMethods.GetKernelObjectSecurity(kernelObject, ListenerUnsafeNativeMethods.DACL_SECURITY_INFORMATION, pSecurityDescriptor, pSecurityDescriptor.Length, out lpnLengthNeeded);
if (!success)
{
@ -273,7 +273,7 @@ namespace System.ServiceModel.Activation
pSecurityDescriptor = new byte[lpnLengthNeeded];
securityDescriptor.GetBinaryForm(pSecurityDescriptor, 0);
// set the SECURITY_DESCRIPTOR on the kernelObject
#pragma warning suppress 56523 // [....], Win32Exception ctor calls Marshal.GetLastWin32Error()
#pragma warning suppress 56523 // Microsoft, Win32Exception ctor calls Marshal.GetLastWin32Error()
success = ListenerUnsafeNativeMethods.SetKernelObjectSecurity(kernelObject, ListenerUnsafeNativeMethods.DACL_SECURITY_INFORMATION, pSecurityDescriptor);
if (!success)
{
@ -419,7 +419,7 @@ namespace System.ServiceModel.Activation
}
}
byte[] serviceStatusProcess = new byte[lpnLengthNeeded];
#pragma warning suppress 56523 // [....], Win32Exception ctor calls Marshal.GetLastWin32Error()
#pragma warning suppress 56523 // Microsoft, Win32Exception ctor calls Marshal.GetLastWin32Error()
success = ListenerUnsafeNativeMethods.QueryServiceStatusEx(service, ListenerUnsafeNativeMethods.SC_STATUS_PROCESS_INFO, serviceStatusProcess, serviceStatusProcess.Length, out lpnLengthNeeded);
if (!success)
{

View File

@ -14,7 +14,7 @@ namespace System.ServiceModel.Administration
Fx.Assert(null != info, "");
Fx.Assert(null != instance, "");
//warning 56507 : Prefer 'string.IsNullOrEmpty(action)' over checks for null and/or emptiness.
#pragma warning suppress 56507 //[....]; Asserting non-null object for marshalling reasons. Empty string may be valid input.
#pragma warning suppress 56507 //Microsoft; Asserting non-null object for marshalling reasons. Empty string may be valid input.
Fx.Assert(null != propertyName, "");
string[] data = new string[info.Count];
@ -31,7 +31,7 @@ namespace System.ServiceModel.Administration
Fx.Assert(null != info, "");
Fx.Assert(null != instance, "");
//warning 56507 : Prefer 'string.IsNullOrEmpty(action)' over checks for null and/or emptiness.
#pragma warning suppress 56507 //[....]; Asserting non-null object for marshalling reasons. Empty string may be valid input.
#pragma warning suppress 56507 //Microsoft; Asserting non-null object for marshalling reasons. Empty string may be valid input.
Fx.Assert(null != propertyName, "");
int i = 0;

View File

@ -32,6 +32,12 @@ namespace System
LocalAppContextSwitches.SetDefaultsLessOrEqual_461();
}
if (version <= 40602)
{
// Define the switches that should be true for 4.6.2 or less, false for 4.6.3+.
LocalAppContext.DefineSwitchDefault(LocalAppContextSwitches.DisableUsingServicePointManagerSecurityProtocolsString, true);
}
break;
}
}

View File

@ -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;

View File

@ -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());
}
}

View File

@ -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;

View File

@ -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))

View File

@ -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;
}

View File

@ -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))

View File

@ -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);

View File

@ -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))

View File

@ -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))

View File

@ -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);
}

View File

@ -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))

View File

@ -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;
}

View File

@ -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))

View File

@ -1 +1 @@
5df21319d3d6e9046fc229fc5459ad17a351de9b
f75afcecfbb098ab8e64e48b4a8271c6fff01664

View File

@ -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)

Some files were not shown because too many files have changed in this diff Show More