You've already forked linux-packaging-mono
acceptance-tests
data
debian
docs
external
ikvm-native
libgc
llvm
m4
man
mcs
build
class
Accessibility
Commons.Xml.Relaxng
Cscompmgd
CustomMarshalers
Facades
I18N
IBM.Data.DB2
ICSharpCode.SharpZipLib
Microsoft.Build
Microsoft.Build.Engine
Microsoft.Build.Framework
Microsoft.Build.Tasks
Microsoft.Build.Utilities
Microsoft.CSharp
Microsoft.NuGet.Build.Tasks
Microsoft.VisualC
Microsoft.Web.Infrastructure
MicrosoftAjaxLibrary
Mono.Btls.Interface
Mono.C5
Mono.CSharp
Mono.Cairo
Mono.Cecil
Mono.Cecil.Mdb
Mono.CodeContracts
Mono.CompilerServices.SymbolWriter
Mono.Data.Sqlite
Mono.Data.Tds
Mono.Debugger.Soft
Mono.Http
Mono.Management
Mono.Messaging
Mono.Messaging.RabbitMQ
Mono.Options
Mono.Parallel
Mono.Posix
Mono.Profiler.Log
Mono.Runtime.Tests
Mono.Security
Mono.Security.Win32
Mono.Simd
Mono.Tasklets
Mono.WebBrowser
Mono.XBuild.Tasks
Novell.Directory.Ldap
PEAPI
RabbitMQ.Client
SMDiagnostics
System
System.ComponentModel.Composition.4.5
System.ComponentModel.DataAnnotations
System.Configuration
System.Configuration.Install
System.Core
System.Data
System.Data.DataSetExtensions
System.Data.Entity
System.Data.Linq
System.Data.OracleClient
System.Data.Services
System.Data.Services.Client
System.Deployment
System.Design
System.DirectoryServices
System.DirectoryServices.Protocols
System.Drawing
System.Drawing.Design
System.Dynamic
System.EnterpriseServices
System.IO.Compression
System.IO.Compression.FileSystem
System.IdentityModel
System.IdentityModel.Selectors
System.Json
System.Json.Microsoft
System.Management
System.Messaging
System.Net
System.Net.Http
System.Net.Http.Formatting
System.Net.Http.WebRequest
System.Net.Http.WinHttpHandler
System.Numerics
System.Numerics.Vectors
System.Reactive.Core
System.Reactive.Debugger
System.Reactive.Experimental
System.Reactive.Interfaces
System.Reactive.Linq
System.Reactive.Observable.Aliases
System.Reactive.PlatformServices
System.Reactive.Providers
System.Reactive.Runtime.Remoting
System.Reactive.Windows.Forms
System.Reactive.Windows.Threading
System.Reflection.Context
System.Runtime.Caching
System.Runtime.CompilerServices.Unsafe
System.Runtime.DurableInstancing
System.Runtime.Remoting
System.Runtime.Serialization
System.Runtime.Serialization.Formatters.Soap
System.Security
System.ServiceModel
System.ServiceModel.Activation
System.ServiceModel.Discovery
System.ServiceModel.Internals
System.ServiceModel.Routing
System.ServiceModel.Web
System.ServiceProcess
System.Threading.Tasks.Dataflow
System.Transactions
System.Web
System.Web.Abstractions
System.Web.ApplicationServices
System.Web.DynamicData
System.Web.Extensions
System.Web.Extensions.Design
System.Web.Http
System.Web.Http.SelfHost
System.Web.Http.WebHost
System.Web.Mobile
System.Web.Mvc3
System.Web.Razor
System.Web.RegularExpressions
System.Web.Routing
System.Web.Services
System.Web.WebPages
System.Web.WebPages.Deployment
System.Web.WebPages.Razor
System.Windows
System.Windows.Forms
System.Windows.Forms.DataVisualization
System.Workflow.Activities
System.Workflow.ComponentModel
System.Workflow.Runtime
System.XML
System.Xaml
System.Xml.Linq
System.Xml.Serialization
SystemWebTestShim
WebMatrix.Data
WindowsBase
aot-compiler
corlib
dlr
doc
legacy
lib
monodoc
notes
reference-assemblies
referencesource
SMDiagnostics
System
System.Activities
System.Activities.Core.Presentation
System.Activities.DurableInstancing
System.Activities.Presentation
System.ComponentModel.DataAnnotations
System.Configuration
System.Core
System.Data
System.Data.DataSetExtensions
System.Data.Entity
System.Data.Entity.Design
System.Data.Linq
System.Data.SqlXml
System.IdentityModel
System.IdentityModel.Selectors
System.Net
System.Numerics
System.Runtime.Caching
System.Runtime.DurableInstancing
System.Runtime.Serialization
System.ServiceModel
InternalApis
Serialization
System
Collections
ServiceModel
Activation
Administration
Channels
AddressHeader.cs
AddressHeaderCollection.cs
Addressing.cs
AddressingVersion.cs
AppContainerInfo.cs
ApplicationContainerSettings.cs
AsymmetricSecurityBindingElement.cs
AuthenticationSchemesBindingParameter.cs
AuthenticationSchemesHelper.cs
BaseUriWithWildcard.cs
BinaryMessageEncoder.cs
BinaryMessageEncodingBindingElement.cs
BinaryVersion.cs
Binding.cs
BindingContext.cs
BindingElement.cs
BindingElementCollection.cs
BindingParameterCollection.cs
BodyWriter.cs
BufferManager.cs
BufferManagerOutputStream.cs
BufferedConnection.cs
BufferedMessageData.cs
BufferedMessageWriter.cs
BufferedOutputAsyncStream.cs
BufferedReceiveMessageProperty.cs
BufferedRequestContext.cs
CallbackContextMessageHeader.cs
CallbackContextMessageProperty.cs
ChainedAsyncResult.cs
ChannelAcceptor.cs
ChannelBase.cs
ChannelBindingMessageProperty.cs
ChannelBindingProviderHelper.cs
ChannelBindingUtility.cs
ChannelBuilder.cs
ChannelDemuxer.cs.REMOVED.git-id
ChannelFactoryBase.cs
ChannelListenerBase.cs
ChannelManagerBase.cs
ChannelParameterCollection.cs
ChannelPool.cs
ChannelPoolSettings.cs
ChannelReliableSession.cs
ChannelRequirements.cs
ChannelTracker.cs
ClientContextProtocol.cs
ClientReliableChannelBinder.cs
ClientWebSocketFactory.cs
ClientWebSocketTransportDuplexSessionChannel.cs
CloseCollectionAsyncResult.cs
CloseSequence.cs
CloseSequenceResponse.cs
CommunicationObject.cs
CommunicationObjectManager.cs
CompositeDuplexBindingElement.cs
CompositeDuplexBindingElementImporter.cs
CompressionFormat.cs
CompressionFormatHelper.cs
ConnectAlgorithms.cs
Connection.cs
ConnectionAcceptor.cs
ConnectionBufferPool.cs
ConnectionDemuxer.cs
ConnectionDumpInitiator.cs
ConnectionModeReader.cs
ConnectionOrientedTransportBindingElement.cs
ConnectionOrientedTransportChannelFactory.cs
ConnectionOrientedTransportChannelListener.cs
ConnectionOrientedTransportManager.cs
ConnectionPool.cs
ConnectionPoolRegistry.cs
ContentOnlyMessage.cs
ContextAddressHeader.cs
ContextBindingElement.cs
ContextBindingElementImporter.cs
ContextBindingElementPolicy.cs
ContextChannelFactory.cs
ContextChannelListener.cs
ContextChannelRequestContext.cs
ContextDictionary.cs
ContextDuplexSessionChannel.cs
ContextExchangeCorrelationHelper.cs
ContextExchangeMechanism.cs
ContextExchangeMechanismHelper.cs
ContextInputChannel.cs
ContextInputChannelBase.cs
ContextInputSessionChannel.cs
ContextMessageHeader.cs
ContextMessageProperty.cs
ContextOutputChannel.cs
ContextOutputChannelBase.cs
ContextOutputSessionChannel.cs
ContextProtocol.cs
ContextReplyChannel.cs
ContextReplySessionChannel.cs
ContextRequestChannel.cs
ContextRequestChannelBase.cs
ContextRequestSessionChannel.cs
CorrelationCallbackMessageProperty.cs
CorrelationDataDescription.cs
CorrelationDataMessageProperty.cs
CorrelationDataSourceHelper.cs
CorrelationKey.cs
CorrelationMessageProperty.cs
CreateSequence.cs
CreateSequenceResponse.cs
CustomBinding.cs
DatagramAdapter.cs
DefaultWebSocketConnectionHandler.cs
DelegatingChannelListener.cs
DelegatingMessage.cs
DelegatingStream.cs
DeliveryFailure.cs
DeliveryStatus.cs
DeliveryStrategy.cs
DetectEofStream.cs
DirectionalAction.cs
DnsCache.cs
DoneReceivingAsyncResult.cs
DuplexChannel.cs
EncoderHelpers.cs
EndpointSettings.cs
ExclusiveNamedPipeTransportManager.cs
ExclusiveTcpTransportManager.cs
FaultConverter.cs
FramingChannels.cs
FramingDecoders.cs
FramingEncoders.cs
FramingFormat.cs
HttpAnonymousUriPrefixMatcher.cs
HttpChannelFactory.cs
HttpChannelHelpers.cs.REMOVED.git-id
HttpChannelListener.cs
HttpCookieContainerBindingElement.cs
HttpCookieContainerManager.cs
HttpHeaderInfo.cs
HttpHeadersWebHeaderCollection.cs
HttpMessageHandlerFactory.cs
HttpMessageSettings.cs
HttpPipeline.cs
HttpPipelineCancellationTokenSource.cs
HttpRequestContext.cs
HttpRequestMessageExtensionMethods.cs
HttpRequestMessageProperty.cs
HttpResponseMessageExtensionMethods.cs
HttpResponseMessageProperty.cs
HttpTransportBindingElement.cs
HttpTransportManager.cs
HttpsChannelFactory.cs
HttpsChannelListener.cs
HttpsTransportBindingElement.cs
IAnonymousUriPrefixMatcher.cs
IBindingDeliveryCapabilities.cs
IBindingMulticastCapabilities.cs
IBindingRuntimePreferences.cs
IChannel.cs
IChannelAcceptor.cs
IChannelBindingProvider.cs
IChannelFactory.cs
IChannelListener.cs
ICompressedMessageEncoder.cs
IContextBindingElement.cs
IContextManager.cs
ICorrelationDataSource.cs
ICorrelatorKey.cs
IDuplexChannel.cs
IDuplexSession.cs
IDuplexSessionChannel.cs
IHttpCookieContainerManager.cs
IInputChannel.cs
IInputSession.cs
IInputSessionChannel.cs
ILockingQueue.cs
IMergeEnabledMessageProperty.cs
IMessageProperty.cs
IMessageSource.cs
IOutputChannel.cs
IOutputSession.cs
IOutputSessionChannel.cs
IPeerNeighbor.cs
IPoisonHandlingStrategy.cs
IReceiveContextSettings.cs
IReliableChannelBinder.cs
IReliableFactorySettings.cs
IReplyChannel.cs
IReplySessionChannel.cs
IRequestChannel.cs
IRequestReplyCorrelator.cs
IRequestSessionChannel.cs
ISecurityCapabilities.cs
ISession.cs
ISessionChannel.cs
IStreamUpgradeChannelBindingProvider.cs
IStreamedMessageEncoder.cs
ITransactedBindingElement.cs
ITransactionChannelManager.cs
ITransportCompressionSupport.cs
ITransportFactorySettings.cs
ITransportTokenAssertionProvider.cs
IWebMessageEncoderHelper.cs
IWebsocketCloseDetails.cs
IdlingCommunicationPool.cs
InitialServerConnectionReader.cs
InputChannel.cs
InputChannelAcceptor.cs
InputQueueChannel.cs
InputQueueChannelAcceptor.cs
InternalDuplexBindingElement.cs
InternalDuplexChannelFactory.cs
InternalDuplexChannelListener.cs
InvalidChannelBindingException.cs
LateBoundChannelParameterCollection.cs
LayeredChannel.cs
LayeredChannelFactory.cs
LayeredChannelListener.cs
LifetimeManager.cs
LocalClientSecuritySettings.cs
LocalServiceSecuritySettings.cs
LockHelper.cs
MaxMessageSizeStream.cs
Message.cs
MessageBuffer.cs
MessageEncoder.cs
MessageEncoderCompressionHandler.cs
MessageEncoderFactory.cs
MessageEncodingBindingElement.cs
MessageEncodingBindingElementImporter.cs
MessageFault.cs
MessageHeader.cs
MessageHeaderInfo.cs
MessageHeaders.cs
MessageProperties.cs
MessageState.cs
MessageVersion.cs
Msmq.cs
Msmq3PoisonHandler.cs
Msmq4PoisonHandler.cs
Msmq4SubqueuePoisonHandler.cs
MsmqBindingElementBase.cs
MsmqBindingFilter.cs
MsmqBindingMonitor.cs
MsmqChannelFactory.cs
MsmqChannelFactoryBase.cs
MsmqChannelListenerBase.cs
MsmqDecodeHelper.cs
MsmqDefaultLockingQueue.cs
MsmqDiagnostics.cs
MsmqInputChannel.cs
MsmqInputChannelBase.cs
MsmqInputChannelListener.cs
MsmqInputChannelListenerBase.cs
MsmqInputMessage.cs
MsmqInputMessagePool.cs
MsmqInputSessionChannel.cs
MsmqInputSessionChannelListener.cs
MsmqMessageProperty.cs
MsmqNonTransactedPoisonHandler.cs
MsmqOutputChannel.cs
MsmqOutputMessage.cs
MsmqOutputSessionChannel.cs
MsmqQueue.cs
MsmqReceiveContext.cs
MsmqReceiveContextLockManager.cs
MsmqReceiveHelper.cs
MsmqReceiveParameters.cs
MsmqSubqueueLockingQueue.cs
MsmqTransportBindingElement.cs
MsmqTransportReceiveParameters.cs
MsmqUri.cs
MsmqVerifier.cs
MtomMessageEncoder.cs
MtomMessageEncodingBindingElement.cs
NamedPipeChannelFactory.cs
NamedPipeChannelListener.cs
NamedPipeConnectionPool.cs
NamedPipeConnectionPoolSettings.cs
NamedPipeSettings.cs
NamedPipeTransportBindingElement.cs
NamedPipeTransportManager.cs
NativeMsmqMessage.cs
OneWayBindingElement.cs
OneWayBindingElementImporter.cs
OneWayChannelFactory.cs
OneWayChannelListener.cs
OpaqueContent.cs
OpenCollectionAsyncResult.cs
OutputChannel.cs
OverlappedContext.cs
PeerChannelFactory.cs
PeerChannelListener.cs
PeerConnector.cs
PeerCustomResolverBindingElement.cs
PeerDuplexChannel.cs
PeerDuplexChannelListener.cs
PeerFlooder.cs
PeerHelpers.cs
PeerIPHelper.cs
PeerInputChannel.cs
PeerInputChannelListener.cs
PeerMaintainer.cs
PeerMessageDispatcher.cs
PeerNeighborManager.cs
PeerNodeImplementation.cs
PeerNodeStateManager.cs
PeerOutputChannel.cs
PeerResolverBindingElement.cs
PeerSecurityHelpers.cs
PeerSecurityManager.cs
PeerService.cs
PeerServiceMessageContracts.cs
PeerTransportBindingElement.cs
PeerUnsafeNativeCryptMethods.cs
PeerUnsafeNativeMethods.cs
PipeConnection.cs.REMOVED.git-id
PipeException.cs
PnrpPeerResolver.cs.REMOVED.git-id
PnrpPeerResolverBindingElement.cs
PrivacyNoticeBindingElement.cs
PrivacyNoticeBindingElementImporter.cs
QueuedObjectPool.cs
ReceiveContext.cs
ReceiveContextState.cs
RedirectionConstants.cs
RedirectionDuration.cs
RedirectionException.cs
RedirectionLocation.cs
RedirectionScope.cs
RedirectionType.cs
RedirectionUtility.cs
ReliableChannelBinder.cs.REMOVED.git-id
ReliableChannelFactory.cs
ReliableChannelListener.cs
ReliableDuplexSessionChannel.cs
ReliableInputConnection.cs
ReliableInputSessionChannel.cs
ReliableMessagingHelpers.cs.REMOVED.git-id
ReliableOutputConnection.cs
ReliableOutputSessionChannel.cs
ReliableReplySessionChannel.cs
ReliableRequestSessionChannel.cs
ReliableSessionBindingElement.cs
ReliableSessionBindingElementImporter.cs
RemoteEndpointMessageProperty.cs
ReplyAdapterChannelListener.cs
ReplyChannel.cs
ReplyChannelAcceptor.cs
RequestChannel.cs
RequestContext.cs
RequestContextBase.cs
RequestReplyCorrelator.cs
RetryException.cs
SafeNativeMethods.cs
SecurityAttributeGenerationHelper.cs
SecurityBindingElement.cs.REMOVED.git-id
SecurityBindingElementImporter.cs
SecurityCapabilities.cs
SecurityChannelFactory.cs
SecurityChannelFaultConverter.cs
SecurityChannelListener.cs
SecurityHeaderLayout.cs
SelfSignedCertificate.cs
SequenceRange.cs
SequenceRangeCollection.cs
ServerReliableChannelBinder.cs
ServerWebSocketTransportDuplexSessionChannel.cs
ServiceChannel.cs
ServiceChannelFactory.cs
ServiceChannelProxy.cs
ServiceContextProtocol.cs
ServiceWebSocketContext.cs
SessionConnectionReader.cs
SessionOpenNotification.cs
SharedConnectionListener.cs
SharedHttpTransportManager.cs
SharedHttpsTransportManager.cs
SharedTcpTransportManager.cs
SingletonChannelAcceptor.cs
SingletonConnectionReader.cs
SocketAsyncEventArgsPool.cs
SocketConnection.cs
SslStreamSecurityBindingElement.cs
SslStreamSecurityUpgradeProvider.cs
StandardBindingImporter.cs
StreamSecurityUpgradeAcceptor.cs
StreamSecurityUpgradeAcceptorAsyncResult.cs
StreamSecurityUpgradeAcceptorBase.cs
StreamSecurityUpgradeInitiator.cs
StreamSecurityUpgradeInitiatorAsyncResult.cs
StreamSecurityUpgradeInitiatorBase.cs
StreamSecurityUpgradeProvider.cs
StreamUpgradeAcceptor.cs
StreamUpgradeBindingElement.cs
StreamUpgradeInitiator.cs
StreamUpgradeProvider.cs
StreamedFramingRequestChannel.cs
SupportedAddressingMode.cs
SymmetricSecurityBindingElement.cs
SynchronizedMessageSource.cs
TcpChannelFactory.cs
TcpChannelListener.cs
TcpConnectionPool.cs
TcpConnectionPoolSettings.cs
TcpTransportBindingElement.cs
TcpTransportManager.cs
TerminateSequence.cs
TerminateSequenceResponse.cs
TextMessageEncoder.cs
TextMessageEncodingBindingElement.cs
TimeoutStream.cs
TracingConnection.cs
TracingConnectionInitiator.cs
TracingConnectionListener.cs
TransactionChannel.cs
TransactionChannelFactory.cs
TransactionChannelFaultConverter.cs
TransactionChannelListener.cs
TransactionFlowBindingElement.cs
TransactionFlowBindingElementImporter.cs
TransactionFlowProperty.cs
TransferSession.cs
TransmissionStrategy.cs
TransportBindingElement.cs
TransportBindingElementImporter.cs
TransportChannelFactory.cs
TransportChannelListener.cs
TransportDefaults.cs
TransportDuplexSessionChannel.cs
TransportManager.cs
TransportOutputChannel.cs
TransportReplyChannelAcceptor.cs
TransportSecurityBindingElement.cs
TransportSecurityHelpers.cs
UnderstoodHeaders.cs
UniqueTransportManagerRegistration.cs
UnrecognizedAssertionsBindingElement.cs
UnsafeNativeMethods.cs
UriGenerator.cs
UriHelper.cs
UriPrefixTable.cs
UseManagedPresentationBindingElement.cs
UseManagedPresentationBindingElementImporter.cs
UtilityExtension.cs
WebSocketConnectionHandler.cs
WebSocketHelper.cs
WebSocketMessageProperty.cs
WebSocketTransportDuplexSessionChannel.cs
WebSocketTransportSettings.cs
WebSocketTransportUsage.cs
WebSocketTransportUsageHelper.cs
WindowsStreamSecurityBindingElement.cs
WindowsStreamSecurityUpgradeProvider.cs
WrappedOptions.cs
WsrmFault.cs
WsrmMessageInfo.cs
XmlSerializerImportOptions.cs
ComIntegration
Configuration
Description
Diagnostics
Dispatcher
MsmqIntegration
PeerResolvers
Security
Syndication
Transactions
XamlIntegration
ActionMismatchAddressingException.cs
ActionNotSupportedException.cs
AddressAccessDeniedException.cs
AddressAlreadyInUseException.cs
AddressFilterMode.cs
AppContextDefaultValues.Default.cs
AuditLevel.cs
AuditLogLocation.cs
BasicHttpBinding.cs
BasicHttpContextBinding.cs
BasicHttpMessageCredentialType.cs
BasicHttpMessageSecurity.cs
BasicHttpSecurity.cs
BasicHttpSecurityMode.cs
BasicHttpsBinding.cs
BasicHttpsSecurity.cs
BasicHttpsSecurityMode.cs
CacheSetting.cs
CallbackBehaviorAttribute.cs
ChannelFactory.cs
ChannelFactoryRefCache.cs
ChannelTerminatedException.cs
ClientBase.cs
CommunicationException.cs
CommunicationObjectAbortedException.cs
CommunicationObjectFaultedException.cs
CommunicationState.cs
ConcurrencyMode.cs
ConfigurationEndpointTrait.cs
DXD.cs
DataContractFormatAttribute.cs
DeadLetterQueue.cs
DeliveryRequirementsAttribute.cs
DnsEndpointIdentity.cs
DuplexChannelFactory.cs
DuplexClientBase.cs
EmptyArray.cs
EndpointAddress.cs
EndpointAddress10.cs
EndpointAddressAugust2004.cs
EndpointIdentity.cs
EndpointNotFoundException.cs
EndpointTrait.cs
EnvelopeVersion.cs
ExceptionDetail.cs
ExceptionMapper.cs
ExtensionCollection.cs
FaultCode.cs
FaultCodeConstants.cs
FaultContractAttribute.cs
FaultException.cs
FaultImportOptions.cs
FaultReason.cs
FaultReasonText.cs
FederatedMessageSecurityOverHttp.cs
GeneralEndpointIdentity.cs
HostnameComparisonMode.cs
HttpBindingBase.cs
HttpClientCredentialType.cs
HttpProxyCredentialType.cs
HttpTransportSecurity.cs
IChannelBaseProxy.cs
IClientChannel.cs
ICommunicationObject.cs
IContextChannel.cs
IContextSessionProvider.cs
IDefaultCommunicationTimeouts.cs
IDuplexContextChannel.cs
IExtensibleObject.cs
IExtension.cs
IExtensionCollection.cs
IOnlineStatus.cs
IOperationContractAttributeProvider.cs
IServiceChannel.cs
ImpersonationOption.cs
InstanceContext.cs
InstanceContextMode.cs
InvalidMessageContractException.cs
KeyedByTypeCollection.cs
LocalAppContextSwitches.cs
MessageBodyMemberAttribute.cs
MessageContractAttribute.cs
MessageContractMemberAttribute.cs
MessageCredentialType.cs
MessageHeaderArrayAttribute.cs
MessageHeaderAttribute.cs
MessageHeaderException.cs
MessageHeaderT.cs
MessageParameterAttribute.cs
MessagePropertyAttribute.cs
MessageSecurityOverHttp.cs
MessageSecurityOverMsmq.cs
MessageSecurityOverTcp.cs
MessageSecurityVersion.cs
MostlySingletonList.cs
MsmqAuthenticationMode.cs
MsmqBindingBase.cs
MsmqEncryptionAlgorithm.cs
MsmqException.cs
MsmqPoisonMessageException.cs
MsmqSecureHashAlgorithm.cs
MsmqTransportSecurity.cs
MustUnderstandSoapException.cs
NamedPipeTransportSecurity.cs
NetHttpBinding.cs
NetHttpMessageEncoding.cs
NetHttpMessageEncodingHelper.cs
NetHttpsBinding.cs
NetMsmqBinding.cs
NetMsmqSecurity.cs
NetMsmqSecurityMode.cs
NetNamedPipeBinding.cs
NetNamedPipeSecurity.cs
NetNamedPipeSecurityMode.cs
NetPeerTcpBinding.cs
NetTcpBinding.cs
NetTcpContextBinding.cs
NetTcpSecurity.cs
NonDualMessageSecurityOverHttp.cs
OSEnvironmentHelper.cs
OSVersion.cs
OperationBehaviorAttribute.cs
OperationContext.cs
OperationContextScope.cs
OperationContractAttribute.cs
OperationFormatStyle.cs
OperationFormatUse.cs
PeerHopCountAttribute.cs
PeerMessageOrigination.cs
PeerMessagePropagation.cs
PeerMessagePropagationFilter.cs
PeerNode.cs
PeerNodeAddress.cs
PeerResolver.cs
PeerSecuritySettings.cs
PeerTransportCredentialType.cs
PeerTransportSecuritySettings.cs
PoisonMessageException.cs
Pool.cs
ProgrammaticEndpointTrait.cs
ProtocolException.cs
QueueTransferProtocol.cs
QueuedDeliveryRequirementsMode.cs
QuotaExceededException.cs
ReceiveContextEnabledAttribute.cs
ReceiveErrorHandling.cs
ReleaseInstanceMode.cs
ReliableMessagingVersion.cs
ReliableSession.cs
RsaEndpointIdentity.cs
SecurityMode.cs
ServerTooBusyException.cs
ServiceActivationException.cs
ServiceAuthenticationManager.cs
ServiceAuthorizationManager.cs
ServiceBehaviorAttribute.cs
ServiceChannelManager.cs
ServiceConfiguration.cs
ServiceContractAttribute.cs
ServiceDefaults.cs
ServiceEndpointTrait.cs
ServiceHost.cs
ServiceKnownTypeAttribute.cs
ServiceModelAppSettings.cs
ServiceModelAttributeTargets.cs
ServiceModelDictionary.cs
ServiceModelStrings.cs
ServiceModelStringsVersion1.cs
ServiceSecurityContext.cs
SessionMode.cs
SpnEndpointIdentity.cs
StringUtil.cs
SynchronizedCollection.cs
SynchronizedDisposablePool.cs
SynchronizedKeyedCollection.cs
SynchronizedReadOnlyCollection.cs
TcpClientCredentialType.cs
TcpTransportSecurity.cs
ThreadTrace.cs
TimeSpanHelper.cs
TransactionFlowAttribute.cs
TransactionFlowOption.cs
TransactionProtocol.cs
TransferMode.cs
UnifiedSecurityMode.cs
UnknownMessageReceivedEventArgs.cs
UpnEndpointIdentity.cs
UriSchemeKeyedCollection.cs
WS2007FederationHttpBinding.cs
WS2007HttpBinding.cs
WSAddressing10ProblemHeaderQNameFault.cs
WSDualHttpBinding.cs
WSDualHttpSecurity.cs
WSDualHttpSecurityMode.cs
WSFederationHttpBinding.cs
WSFederationHttpSecurity.cs
WSFederationHttpSecurityMode.cs
WSHttpBinding.cs
WSHttpBindingBase.cs
WSHttpContextBinding.cs
WSHttpSecurity.cs
WSMessageEncoding.cs
WrappedDispatcherException.cs
X509CertificateEndpointIdentity.cs
XD.cs.REMOVED.git-id
XPathMessageQuery.cs
XmlBuffer.cs
XmlSerializerFormatAttribute.cs
XmlUtil.cs
UriTemplate.cs
UriTemplateCompoundPathSegment.cs
UriTemplateEquivalenceComparer.cs
UriTemplateHelpers.cs
UriTemplateLiteralPathSegment.cs
UriTemplateLiteralQueryValue.cs
UriTemplateMatch.cs
UriTemplateMatchException.cs
UriTemplatePartType.cs
UriTemplatePathPartiallyEquivalentSet.cs
UriTemplatePathSegment.cs
UriTemplateQueryValue.cs
UriTemplateTable.cs
UriTemplateTableMatchCandidate.cs
UriTemplateTrieIntraNodeLocation.cs
UriTemplateTrieLocation.cs
UriTemplateTrieNode.cs
UriTemplateVariablePathSegment.cs
UriTemplateVariableQueryValue.cs
AssemblyInfo.cs
System.ServiceModel.txt.REMOVED.git-id
TD.Designer.cs.REMOVED.git-id
System.ServiceModel.Activation
System.ServiceModel.Activities
System.ServiceModel.Channels
System.ServiceModel.Discovery
System.ServiceModel.Internals
System.ServiceModel.Routing
System.ServiceModel.WasHosting
System.ServiceModel.Web
System.Web
System.Web.ApplicationServices
System.Web.DataVisualization
System.Web.DynamicData
System.Web.Entity
System.Web.Entity.Design
System.Web.Extensions
System.Web.Mobile
System.Web.Routing
System.Web.Services
System.Workflow.Activities
System.Workflow.ComponentModel
System.Workflow.Runtime
System.WorkflowServices
System.Xaml.Hosting
System.Xml
System.Xml.Linq
XamlBuildTask
mscorlib
LICENSE.txt
PATENTS.TXT
README.Mono.md
README.md
test-helpers
LICENSE
Makefile
Open.snk
README
ecma.pub
mono.pub
mono.snk
msfinal.pub
reactive.pub
silverlight.pub
winfx.pub
winfx3.pub
docs
errors
ilasm
jay
mcs
packages
tests
tools
AUTHORS
COPYING
INSTALL.txt
Makefile
MonoIcon.png
README
ScalableMonoIcon.svg
mkinstalldirs
mk
mono
msvc
po
runtime
samples
scripts
support
tools
COPYING.LIB
LICENSE
Makefile.am
Makefile.in
NEWS
README.md
acinclude.m4
aclocal.m4
autogen.sh
code_of_conduct.md
compile
config.guess
config.h.in
config.rpath
config.sub
configure.REMOVED.git-id
configure.ac.REMOVED.git-id
depcomp
install-sh
ltmain.sh.REMOVED.git-id
missing
mkinstalldirs
mono-uninstalled.pc.in
test-driver
winconfig.h
468 lines
15 KiB
C#
468 lines
15 KiB
C#
![]() |
//------------------------------------------------------------
|
||
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||
|
//------------------------------------------------------------
|
||
|
namespace System.ServiceModel.Channels
|
||
|
{
|
||
|
using System.Diagnostics;
|
||
|
using System.Runtime;
|
||
|
using System.ServiceModel;
|
||
|
using System.ServiceModel.Description;
|
||
|
using System.Threading;
|
||
|
|
||
|
class UtilityExtension : IExtension<IPeerNeighbor>
|
||
|
{
|
||
|
uint linkUtility;
|
||
|
uint updateCount;
|
||
|
IOThreadTimer ackTimer;
|
||
|
const uint linkUtilityIncrement = 128;
|
||
|
const uint maxLinkUtility = 4096;
|
||
|
int outTotal;
|
||
|
uint inTotal;
|
||
|
uint inUseful;
|
||
|
IPeerNeighbor owner;
|
||
|
object thisLock = new object();
|
||
|
object throttleLock = new object();
|
||
|
public event EventHandler UtilityInfoReceived;
|
||
|
public event EventHandler UtilityInfoSent;
|
||
|
TypedMessageConverter messageConverter;
|
||
|
public const int AcceptableMissDistance = 2;
|
||
|
int pendingSends = 0;
|
||
|
int checkPointPendingSends = 0;
|
||
|
bool isMonitoring = false;
|
||
|
int expectedClearance;
|
||
|
IOThreadTimer pruneTimer;
|
||
|
const int PruneIntervalMilliseconds = 10000;
|
||
|
TimeSpan pruneInterval;
|
||
|
const int MinimumPendingMessages = 8;
|
||
|
public delegate void PruneNeighborCallback(IPeerNeighbor peer);
|
||
|
PruneNeighborCallback pruneNeighbor;
|
||
|
|
||
|
UtilityExtension()
|
||
|
{
|
||
|
ackTimer = new IOThreadTimer(new Action<object>(AcknowledgeLoop), null, false);
|
||
|
pendingSends = 0;
|
||
|
pruneTimer = new IOThreadTimer(new Action<object>(VerifyCheckPoint), null, false);
|
||
|
pruneInterval = TimeSpan.FromMilliseconds(PruneIntervalMilliseconds + new Random(Process.GetCurrentProcess().Id).Next(PruneIntervalMilliseconds));
|
||
|
}
|
||
|
|
||
|
public bool IsAccurate
|
||
|
{
|
||
|
get { return updateCount >= 32; }
|
||
|
}
|
||
|
|
||
|
public uint LinkUtility
|
||
|
{
|
||
|
get
|
||
|
{
|
||
|
return linkUtility;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
internal TypedMessageConverter MessageConverter
|
||
|
{
|
||
|
get
|
||
|
{
|
||
|
if (messageConverter == null)
|
||
|
{
|
||
|
messageConverter = TypedMessageConverter.Create(typeof(UtilityInfo), PeerStrings.LinkUtilityAction);
|
||
|
}
|
||
|
return messageConverter;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public void Attach(IPeerNeighbor host)
|
||
|
{
|
||
|
this.owner = host;
|
||
|
ackTimer.Set(PeerTransportConstants.AckTimeout);
|
||
|
}
|
||
|
|
||
|
static public void OnNeighborConnected(IPeerNeighbor neighbor)
|
||
|
{
|
||
|
Fx.Assert(neighbor != null, "Neighbor must have a value");
|
||
|
neighbor.Extensions.Add(new UtilityExtension());
|
||
|
}
|
||
|
|
||
|
static public void OnNeighborClosed(IPeerNeighbor neighbor)
|
||
|
{
|
||
|
Fx.Assert(neighbor != null, "Neighbor must have a value");
|
||
|
UtilityExtension ext = neighbor.Extensions.Find<UtilityExtension>();
|
||
|
if (ext != null) neighbor.Extensions.Remove(ext);
|
||
|
}
|
||
|
|
||
|
public void Detach(IPeerNeighbor host)
|
||
|
{
|
||
|
ackTimer.Cancel();
|
||
|
owner = null;
|
||
|
|
||
|
lock (throttleLock)
|
||
|
{
|
||
|
pruneTimer.Cancel();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public object ThisLock
|
||
|
{
|
||
|
get
|
||
|
{
|
||
|
return thisLock;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public static void OnMessageSent(IPeerNeighbor neighbor)
|
||
|
{
|
||
|
UtilityExtension ext = neighbor.Extensions.Find<UtilityExtension>();
|
||
|
if (ext != null) ext.OnMessageSent();
|
||
|
}
|
||
|
|
||
|
void OnMessageSent()
|
||
|
{
|
||
|
lock (ThisLock)
|
||
|
{
|
||
|
outTotal++;
|
||
|
}
|
||
|
Interlocked.Increment(ref pendingSends);
|
||
|
}
|
||
|
|
||
|
public static void OnEndSend(IPeerNeighbor neighbor, FloodAsyncResult fresult)
|
||
|
{
|
||
|
if (neighbor.State >= PeerNeighborState.Disconnecting)
|
||
|
return;
|
||
|
UtilityExtension instance = neighbor.Utility;
|
||
|
if (instance == null)
|
||
|
return;
|
||
|
instance.OnEndSend(fresult);
|
||
|
}
|
||
|
|
||
|
public void OnEndSend(FloodAsyncResult fresult)
|
||
|
{
|
||
|
Interlocked.Decrement(ref pendingSends);
|
||
|
}
|
||
|
|
||
|
void AcknowledgeLoop(object state)
|
||
|
{
|
||
|
IPeerNeighbor peer = owner;
|
||
|
if (peer == null || !peer.IsConnected)
|
||
|
return;
|
||
|
FlushAcknowledge();
|
||
|
if (owner != null)
|
||
|
ackTimer.Set(PeerTransportConstants.AckTimeout);
|
||
|
}
|
||
|
|
||
|
static public void ProcessLinkUtility(IPeerNeighbor neighbor, UtilityInfo umessage)
|
||
|
{
|
||
|
Fx.Assert(neighbor != null, "Neighbor must have a value");
|
||
|
UtilityExtension ext = neighbor.Extensions.Find<UtilityExtension>();
|
||
|
if (ext != null)
|
||
|
{
|
||
|
ext.ProcessLinkUtility(umessage.Useful, umessage.Total);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// Update link utility for the neighbor. received from the neighbor
|
||
|
void ProcessLinkUtility(uint useful, uint total)
|
||
|
{
|
||
|
uint i = 0;
|
||
|
lock (ThisLock)
|
||
|
{
|
||
|
if (total > PeerTransportConstants.AckWindow
|
||
|
|| useful > total
|
||
|
|| (uint)outTotal < total
|
||
|
)
|
||
|
{
|
||
|
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.PeerLinkUtilityInvalidValues, useful, total)));
|
||
|
}
|
||
|
|
||
|
//VERIFY with in this range, we are hoping that the order of useful/useless messages doesnt matter much.
|
||
|
for (i = 0; i < useful; i++)
|
||
|
{
|
||
|
this.linkUtility = Calculate(this.linkUtility, true);
|
||
|
}
|
||
|
for (; i < total; i++)
|
||
|
{
|
||
|
this.linkUtility = Calculate(this.linkUtility, false);
|
||
|
}
|
||
|
outTotal -= (int)total;
|
||
|
}
|
||
|
if (UtilityInfoReceived != null)
|
||
|
{
|
||
|
UtilityInfoReceived(this, EventArgs.Empty);
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
uint Calculate(uint current, bool increase)
|
||
|
{
|
||
|
uint utility = 0;
|
||
|
// Refer to graph maintenance white paper for explanation of the formula
|
||
|
// used to compute utility index.
|
||
|
utility = (uint)current * 31 / 32;
|
||
|
if (increase)
|
||
|
utility += linkUtilityIncrement;
|
||
|
if (!(utility <= maxLinkUtility))
|
||
|
{
|
||
|
throw Fx.AssertAndThrow("Link utility should not exceed " + maxLinkUtility);
|
||
|
}
|
||
|
if (!IsAccurate)
|
||
|
++updateCount;
|
||
|
return utility;
|
||
|
}
|
||
|
|
||
|
public static uint UpdateLinkUtility(IPeerNeighbor neighbor, bool useful)
|
||
|
{
|
||
|
Fx.Assert(neighbor != null, "Neighbor must have a value");
|
||
|
uint linkUtility = 0;
|
||
|
UtilityExtension ext = neighbor.Extensions.Find<UtilityExtension>();
|
||
|
if (ext != null)
|
||
|
{
|
||
|
// Can happen if the neighbor has been closed for instance
|
||
|
linkUtility = ext.UpdateLinkUtility(useful);
|
||
|
}
|
||
|
return linkUtility;
|
||
|
}
|
||
|
|
||
|
public uint UpdateLinkUtility(bool useful)
|
||
|
{
|
||
|
lock (ThisLock)
|
||
|
{
|
||
|
inTotal++;
|
||
|
if (useful)
|
||
|
inUseful++;
|
||
|
linkUtility = Calculate(linkUtility, useful);
|
||
|
if (inTotal == PeerTransportConstants.AckWindow)
|
||
|
{
|
||
|
FlushAcknowledge();
|
||
|
}
|
||
|
}
|
||
|
return linkUtility;
|
||
|
}
|
||
|
|
||
|
public void FlushAcknowledge()
|
||
|
{
|
||
|
if (inTotal == 0)
|
||
|
return;
|
||
|
uint tempUseful = 0, tempTotal = 0;
|
||
|
lock (ThisLock)
|
||
|
{
|
||
|
tempUseful = inUseful;
|
||
|
tempTotal = inTotal;
|
||
|
inUseful = 0;
|
||
|
inTotal = 0;
|
||
|
}
|
||
|
SendUtilityMessage(tempUseful, tempTotal);
|
||
|
}
|
||
|
|
||
|
class AsyncUtilityState
|
||
|
{
|
||
|
public Message message;
|
||
|
public UtilityInfo info;
|
||
|
public AsyncUtilityState(Message message, UtilityInfo info)
|
||
|
{
|
||
|
this.message = message;
|
||
|
this.info = info;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
void SendUtilityMessage(uint useful, uint total)
|
||
|
{
|
||
|
IPeerNeighbor host = owner;
|
||
|
if (host == null || !PeerNeighborStateHelper.IsConnected(host.State) || total == 0)
|
||
|
return;
|
||
|
UtilityInfo umessage = new UtilityInfo(useful, total);
|
||
|
IAsyncResult result = null;
|
||
|
Message message = MessageConverter.ToMessage(umessage, MessageVersion.Soap12WSAddressing10);
|
||
|
bool fatal = false;
|
||
|
try
|
||
|
{
|
||
|
result = host.BeginSend(message, Fx.ThunkCallback(new AsyncCallback(UtilityMessageSent)), new AsyncUtilityState(message, umessage));
|
||
|
if (result.CompletedSynchronously)
|
||
|
{
|
||
|
host.EndSend(result);
|
||
|
EventHandler handler = UtilityInfoSent;
|
||
|
if (handler != null)
|
||
|
handler(this, EventArgs.Empty);
|
||
|
}
|
||
|
}
|
||
|
catch (Exception e)
|
||
|
{
|
||
|
if (Fx.IsFatal(e))
|
||
|
{
|
||
|
fatal = true;
|
||
|
throw;
|
||
|
}
|
||
|
if (null != HandleSendException(host, e, umessage))
|
||
|
throw;
|
||
|
DiagnosticUtility.TraceHandledException(e, TraceEventType.Information);
|
||
|
}
|
||
|
finally
|
||
|
{
|
||
|
if (!fatal && (result == null || result.CompletedSynchronously))
|
||
|
message.Close();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
void UtilityMessageSent(IAsyncResult result)
|
||
|
{
|
||
|
if (result == null || result.AsyncState == null)
|
||
|
return;
|
||
|
IPeerNeighbor host = this.owner;
|
||
|
if (host == null || !PeerNeighborStateHelper.IsConnected(host.State))
|
||
|
return;
|
||
|
if (result.CompletedSynchronously)
|
||
|
return;
|
||
|
|
||
|
AsyncUtilityState state = (AsyncUtilityState)result.AsyncState;
|
||
|
Fx.Assert(state != null, "IAsyncResult.AsyncState does not contain AsyncUtilityState");
|
||
|
Message message = state.message;
|
||
|
UtilityInfo umessage = state.info;
|
||
|
bool fatal = false;
|
||
|
if (!(umessage != null))
|
||
|
{
|
||
|
throw Fx.AssertAndThrow("expecting a UtilityInfo message in the AsyncState!");
|
||
|
}
|
||
|
|
||
|
try
|
||
|
{
|
||
|
host.EndSend(result);
|
||
|
}
|
||
|
catch (Exception e)
|
||
|
{
|
||
|
if (Fx.IsFatal(e))
|
||
|
{
|
||
|
fatal = true;
|
||
|
throw;
|
||
|
}
|
||
|
if (null != HandleSendException(host, e, umessage))
|
||
|
throw;
|
||
|
DiagnosticUtility.TraceHandledException(e, TraceEventType.Information);
|
||
|
}
|
||
|
finally
|
||
|
{
|
||
|
if (!fatal)
|
||
|
{
|
||
|
Fx.Assert(!result.CompletedSynchronously, "result.CompletedSynchronously");
|
||
|
message.Close();
|
||
|
}
|
||
|
}
|
||
|
EventHandler handler = UtilityInfoSent;
|
||
|
if (handler != null)
|
||
|
handler(this, EventArgs.Empty);
|
||
|
}
|
||
|
|
||
|
Exception HandleSendException(IPeerNeighbor host, Exception e, UtilityInfo umessage)
|
||
|
{
|
||
|
if ((e is ObjectDisposedException) ||
|
||
|
(e is TimeoutException) ||
|
||
|
(e is CommunicationException))
|
||
|
{
|
||
|
if (!(!(e.InnerException is QuotaExceededException)))
|
||
|
{
|
||
|
throw Fx.AssertAndThrow("insufficient quota for sending messages!");
|
||
|
}
|
||
|
lock (ThisLock)
|
||
|
{
|
||
|
this.inTotal += umessage.Total;
|
||
|
this.inUseful += umessage.Useful;
|
||
|
}
|
||
|
return null;
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
return e;
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
static internal void ReportCacheMiss(IPeerNeighbor neighbor, int missedBy)
|
||
|
{
|
||
|
Fx.Assert(missedBy > AcceptableMissDistance, "Call this method for cache misses ONLY!");
|
||
|
Fx.Assert(neighbor != null, "Neighbor must have a value");
|
||
|
|
||
|
if (!neighbor.IsConnected)
|
||
|
return;
|
||
|
UtilityExtension ext = neighbor.Extensions.Find<UtilityExtension>();
|
||
|
if (ext != null)
|
||
|
{
|
||
|
ext.ReportCacheMiss(missedBy);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
void ReportCacheMiss(int missedBy)
|
||
|
{
|
||
|
lock (ThisLock)
|
||
|
{
|
||
|
for (int i = 0; i < missedBy; i++)
|
||
|
{
|
||
|
this.linkUtility = Calculate(this.linkUtility, false);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public int PendingMessages
|
||
|
{
|
||
|
get
|
||
|
{
|
||
|
return this.pendingSends;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public void BeginCheckPoint(PruneNeighborCallback pruneCallback)
|
||
|
{
|
||
|
if (this.isMonitoring)
|
||
|
return;
|
||
|
|
||
|
lock (throttleLock)
|
||
|
{
|
||
|
if (this.isMonitoring)
|
||
|
return;
|
||
|
this.checkPointPendingSends = this.pendingSends;
|
||
|
this.pruneNeighbor = pruneCallback;
|
||
|
this.expectedClearance = this.pendingSends / 2;
|
||
|
this.isMonitoring = true;
|
||
|
if (owner == null)
|
||
|
return;
|
||
|
pruneTimer.Set(pruneInterval);
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
void VerifyCheckPoint(object state)
|
||
|
{
|
||
|
int lclPendingSends;
|
||
|
int lclCheckPointPendingSends;
|
||
|
IPeerNeighbor peer = (IPeerNeighbor)owner;
|
||
|
|
||
|
if (peer == null || !peer.IsConnected)
|
||
|
return;
|
||
|
|
||
|
lock (throttleLock)
|
||
|
{
|
||
|
lclPendingSends = this.pendingSends;
|
||
|
lclCheckPointPendingSends = this.checkPointPendingSends;
|
||
|
}
|
||
|
if (lclPendingSends <= MinimumPendingMessages)
|
||
|
{
|
||
|
lock (throttleLock)
|
||
|
{
|
||
|
isMonitoring = false;
|
||
|
}
|
||
|
}
|
||
|
else if (lclPendingSends + this.expectedClearance >= lclCheckPointPendingSends)
|
||
|
{
|
||
|
pruneNeighbor(peer);
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
lock (throttleLock)
|
||
|
{
|
||
|
if (owner == null)
|
||
|
return;
|
||
|
this.checkPointPendingSends = this.pendingSends;
|
||
|
this.expectedClearance = this.expectedClearance / 2;
|
||
|
pruneTimer.Set(pruneInterval);
|
||
|
}
|
||
|
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|