Imported Upstream version 4.2.0.179

Former-commit-id: 4610231f55806d2a05ed69e5ff3faa7336cc1479
This commit is contained in:
Xamarin Public Jenkins
2015-08-26 07:17:56 -04:00
committed by Jo Shields
parent aa7da660d6
commit c042cd0c52
7507 changed files with 90259 additions and 657307 deletions

View File

@@ -0,0 +1,60 @@
//
// AssemblyInfo.cs
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Reflection;
using System.Resources;
using System.Security;
using System.Security.Permissions;
using System.Diagnostics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle ("System.ServiceModel.Internals.dll")]
[assembly: AssemblyDescription ("Contains share code for some System.ServiceModel libraries")]
[assembly: AssemblyDefaultAlias ("System.ServiceModel.dll")]
[assembly: AssemblyInformationalVersion (Consts.FxFileVersion)]
[assembly: AssemblyFileVersion (Consts.FxFileVersion)]
[assembly: NeutralResourcesLanguage ("en-US")]
[assembly: CLSCompliant (true)]
[assembly: AssemblyDelaySign (true)]
#if NET_2_1
[assembly: AssemblyKeyFile ("../winfx.pub")]
#else
[assembly: AssemblyKeyFile ("../ecma.pub")]
[assembly: AllowPartiallyTrustedCallers]
[assembly: ComCompatibleVersion (1, 0, 3300, 0)]
[assembly: SecurityCritical (SecurityCriticalScope.Explicit)]
#endif
[assembly: InternalsVisibleTo ("SMDiagnostics, PublicKey=" + AssemblyRef.FrameworkPublicKeyFull)]
[assembly: InternalsVisibleTo ("System.Runtime.DurableInstancing, PublicKey=" + AssemblyRef.FrameworkPublicKeyFull2)]
[assembly: InternalsVisibleTo ("System.Runtime.Serialization, PublicKey=" + AssemblyRef.FrameworkPublicKeyFull2)]
[assembly: InternalsVisibleTo ("System.IdentityModel, PublicKey=" + AssemblyRef.FrameworkPublicKeyFull2)]
[assembly: InternalsVisibleTo ("System.IdentityModel.Selectors, PublicKey=" + AssemblyRef.FrameworkPublicKeyFull2)]
[assembly: InternalsVisibleTo ("System.ServiceModel, PublicKey=" + AssemblyRef.FrameworkPublicKeyFull2)]
[assembly: InternalsVisibleTo ("System.ServiceModel.Web, PublicKey=" + AssemblyRef.FrameworkPublicKeyFull2)]
[assembly: ComVisible (false)]

View File

@@ -0,0 +1,53 @@
/*
This source is taken from mcs/class/System/System.Diagnostics to make it
build without adding this public API in System.dll. IF we brought this
API in mobile world, this will conflict and can be removed.
*/
#if MOBILE
//
// System.Diagnostics.EventLogEntryType.cs
//
// Authors:
// Jonathan Pryor (jonpryor@vt.edu)
//
// (C) 2002
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Diagnostics;
namespace System.Diagnostics {
public enum EventLogEntryType {
Error = 0x01,
Warning = 0x02,
Information = 0x04,
SuccessAudit = 0x08,
FailureAudit = 0x10
}
}
#endif

View File

@@ -0,0 +1,121 @@
namespace System.Runtime {
internal static class InternalSR {
public static string ArgumentNullOrEmpty(string paramName)
{
return string.Format ("{0} is null or empty");
}
public static string AsyncEventArgsCompletedTwice(Type t)
{
return string.Format ("AsyncEventArgs completed twice for {0}", t);
}
public static string AsyncEventArgsCompletionPending(Type t)
{
return string.Format ("AsyncEventArgs completion pending for {0}", t);
}
public static string BufferAllocationFailed(int size)
{
return string.Format ("Buffer allocation of size {0} failed", size);
}
public static string BufferedOutputStreamQuotaExceeded(int maxSizeQuota)
{
return string.Format ("Buffered output stream quota exceeded (maxSizeQuota={0})", maxSizeQuota);
}
public static string CannotConvertObject(object source, Type t)
{
return string.Format ("Cannot convert object {0} to {1}", source, t);
}
public static string EtwAPIMaxStringCountExceeded(object max)
{
return string.Format ("ETW API max string count exceeded {0}", max);
}
public static string EtwMaxNumberArgumentsExceeded(object max)
{
return string.Format ("ETW max number arguments exceeded {0}", max);
}
public static string EtwRegistrationFailed(object arg)
{
return string.Format ("ETW registration failed {0}", arg);
}
public static string FailFastMessage(string description)
{
return string.Format ("Fail fast: {0}", description);
}
public static string InvalidAsyncResultImplementation(Type t)
{
return string.Format ("Invalid AsyncResult implementation: {0}", t);
}
public static string LockTimeoutExceptionMessage (object timeout)
{
return string.Format ("Lock timeout {0}", timeout);
}
public static string ShipAssertExceptionMessage(object description)
{
return string.Format ("Ship assert exception {0}", description);
}
public static string TaskTimedOutError (object timeout)
{
return string.Format ("Task timed out error {0}", timeout);
}
public static string TimeoutInputQueueDequeue(object timeout)
{
return string.Format ("Timeout input queue dequeue {0}", timeout);
}
public static string TimeoutMustBeNonNegative(object argumentName, object timeout)
{
return string.Format ("Timeout must be non-negative {0} and {1}", argumentName, timeout);
}
public static string TimeoutMustBePositive(string argumentName, object timeout)
{
return string.Format ("Timeout must be positive {0} {1}", argumentName, timeout);
}
public static string TimeoutOnOperation(object timeout)
{
return string.Format ("Timeout on operation {0}", timeout);
}
public static string AsyncResultCompletedTwice (Type t)
{
return string.Format ("AsyncResult Completed Twice for {0}", t);
}
public const string ActionItemIsAlreadyScheduled = "Action Item Is Already Scheduled";
public const string AsyncCallbackThrewException = "Async Callback Threw Exception";
public const string AsyncResultAlreadyEnded = "Async Result Already Ended";
public const string BadCopyToArray = "Bad Copy To Array";
public const string BufferIsNotRightSizeForBufferManager = "Buffer Is Not Right Size For Buffer Manager";
public const string DictionaryIsReadOnly = "Dictionary Is Read Only";
public const string InvalidAsyncResult = "Invalid Async Result";
public const string InvalidAsyncResultImplementationGeneric = "Invalid Async Result Implementation Generic";
public const string InvalidNullAsyncResult = "Invalid Null Async Result";
public const string InvalidSemaphoreExit = "Invalid Semaphore Exit";
public const string KeyCollectionUpdatesNotAllowed = "Key Collection Updates Not Allowed";
public const string KeyNotFoundInDictionary = "Key Not Found In Dictionary";
public const string MustCancelOldTimer = "Must Cancel Old Timer";
public const string NullKeyAlreadyPresent = "Null Key Already Present";
public const string ReadNotSupported = "Read Not Supported";
public const string SFxTaskNotStarted = "SFx Task Not Started";
public const string SeekNotSupported = "Seek Not Supported";
public const string ThreadNeutralSemaphoreAborted = "Thread Neutral Semaphore Aborted";
public const string ValueCollectionUpdatesNotAllowed = "Value Collection Updates Not Allowed";
public const string ValueMustBeNonNegative = "Value Must Be Non Negative";
}
}

View File

@@ -0,0 +1,18 @@
thisdir = class/System.ServiceModel.Internals
SUBDIRS =
include ../../build/rules.make
LIBRARY = System.ServiceModel.Internals.dll
LIB_REFS = System System.Core System.Xml
ifneq (2.1, $(FRAMEWORK_VERSION))
LIB_REFS += System.Configuration
endif
LIB_MCS_FLAGS = /unsafe
TEST_MCS_FLAGS = $(LIB_MCS_FLAGS)
EXTRA_DISTFILES =
NO_TEST = yes
include ../../build/library.make

View File

@@ -0,0 +1,79 @@
../../build/common/Consts.cs
../../build/common/SR.cs
EventLogEntryType.cs
InternalSR.cs
Assembly/AssemblyInfo.cs
../../../external/referencesource/System.ServiceModel.Internals/AssemblyInfo.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/ActionItem.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/AssertHelper.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/AsyncCompletionResult.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/AsyncEventArgsCallback.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/AsyncEventArgs.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/AsyncResult.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/AsyncWaitHandle.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/BackoffTimeoutHelper.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/BufferedOutputStream.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/CallbackException.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/Collections/HopperCache.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/Collections/NullableKeyDictionary.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/Collections/ObjectCache.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/Collections/ObjectCacheItem.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/Collections/ObjectCacheSettings.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/Collections/OrderedDictionary.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/Collections/ValidatingCollection.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/CompletedAsyncResult.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/ComputerNameFormat.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/Diagnostics/ActivityControl.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/Diagnostics/DiagnosticEventProvider.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/Diagnostics/DiagnosticTraceBase.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/Diagnostics/DiagnosticTraceSource.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/Diagnostics/DictionaryTraceRecord.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/Diagnostics/EtwDiagnosticTrace.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/Diagnostics/EtwProvider.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/Diagnostics/EventDescriptor.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/Diagnostics/EventLogCategory.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/Diagnostics/EventLogEventId.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/Diagnostics/EventLogger.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/Diagnostics/EventTraceActivity.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/Diagnostics/ITraceSourceStringProvider.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/Diagnostics/PerformanceCounterNameAttribute.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/Diagnostics/StringTraceRecord.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/Diagnostics/TraceRecord.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/DiagnosticStrings.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/DuplicateDetector.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/ExceptionTrace.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/FastAsyncCallback.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/FatalException.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/FxCop.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/Fx.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/HashHelper.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/IAsyncEventArgs.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/InputQueue.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/InternalBufferManager.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/Interop/SafeEventLogWriteHandle.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/Interop/UnsafeNativeMethods.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/IOThreadCancellationTokenSource.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/IOThreadScheduler.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/IOThreadTimer.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/MruCache.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/NameGenerator.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/PartialTrustHelpers.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/ReadOnlyDictionaryInternal.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/ReadOnlyKeyedCollection.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/ScheduleActionItemAsyncResult.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/SignalGate.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/SynchronizedPool.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/TaskExtensions.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/ThreadNeutralSemaphore.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/Ticks.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/TimeoutHelper.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/TraceChannel.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/TraceEventLevel.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/TraceEventOpcode.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/TraceLevelHelper.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/TracePayload.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/TypedAsyncResult.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/TypeHelper.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/UrlUtility.cs
../../../external/referencesource/System.ServiceModel.Internals/System/Runtime/WaitCallbackActionItem.cs
../../../external/referencesource/System.ServiceModel.Internals/TraceCore.Designer.cs