Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Activation / ListenerConstants.cs / 1 / ListenerConstants.cs
//---------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //--------------------------------------------------------------------------- namespace System.ServiceModel.Activation { using System; using System.ServiceModel.Channels; static class ListenerConstants { // Default constants for configurable settings public const int DefaultListenBackLog = TcpTransportDefaults.ListenBacklog; public const int DefaultMaxPendingAccepts = 2; public const int DefaultMaxPendingConnections = 100; public const string DefaultReceiveTimeoutString = "00:00:10"; public const bool DefaultTeredoEnabled = false; public const bool DefaultPerformanceCountersEnabled = true; // Registration service binding settings public const int RegistrationMaxConcurrentSessions = int.MaxValue; // based on empirical observations, I've never seen it go over 9018 (seems to be ~8k plus soap goo) // we can be safer here, since we don't actually increase the memeory usage public const int RegistrationMaxReceivedMessageSize = 10000; public static readonly TimeSpan RegistrationCloseTimeout = TimeSpan.FromSeconds(2); // Shared connection settings // we shouldn't be needing to read more than 2115 bytes to dipatch a session public const int SharedConnectionBufferSize = 2500; public const int SharedMaxDrainSize = TransportDefaults.MaxDrainSize; public static readonly TimeSpan SharedSendTimeout = ServiceDefaults.SendTimeout; public const int SharedMaxContentTypeSize = ConnectionOrientedTransportDefaults.MaxContentTypeSize; // Internal listener global settings public const int MaxRetries = 5; public const int MaxUriSize = ConnectionOrientedTransportDefaults.MaxViaSize; public static readonly TimeSpan ServiceStartTimeout = TimeSpan.FromSeconds(10); public const int ServiceStopTimeout = 30000; public static readonly TimeSpan WasConnectTimeout = TimeSpan.FromSeconds(120); // Constant strings public const string GlobalPrefix = "Global\\"; public const string MsmqActivationServiceName = "NetMsmqActivator"; public const string NamedPipeActivationServiceName = "NetPipeActivator"; public const string NamedPipeSharedMemoryName = NamedPipeActivationServiceName + "/endpoint"; public const string TcpActivationServiceName = "NetTcpActivator"; public const string TcpPortSharingServiceName = "NetTcpPortSharing"; public const string TcpSharedMemoryName = TcpPortSharingServiceName + "/endpoint"; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CompoundFileStorageReference.cs
- PackageDigitalSignature.cs
- DesignerTransaction.cs
- SingleTagSectionHandler.cs
- SpecialFolderEnumConverter.cs
- NavigationHelper.cs
- WebCategoryAttribute.cs
- TiffBitmapEncoder.cs
- _NestedSingleAsyncResult.cs
- PathStreamGeometryContext.cs
- AnnotationComponentChooser.cs
- AtomParser.cs
- SafeMemoryMappedViewHandle.cs
- CustomSignedXml.cs
- TransactionsSectionGroup.cs
- ConstraintConverter.cs
- GuidConverter.cs
- AsyncCompletedEventArgs.cs
- DefaultBindingPropertyAttribute.cs
- CookieParameter.cs
- PtsCache.cs
- SafeHandle.cs
- DetailsView.cs
- BoundField.cs
- XslTransformFileEditor.cs
- BindingCollection.cs
- OperationCanceledException.cs
- SystemIcmpV4Statistics.cs
- RefType.cs
- TdsEnums.cs
- WorkflowServiceHost.cs
- TemplateControl.cs
- DataViewManagerListItemTypeDescriptor.cs
- CounterSet.cs
- LogicalExpressionEditor.cs
- XmlReflectionImporter.cs
- ResourceIDHelper.cs
- FormViewDeleteEventArgs.cs
- Int32RectConverter.cs
- RsaKeyIdentifierClause.cs
- Pkcs9Attribute.cs
- BufferedGraphicsContext.cs
- XmlSecureResolver.cs
- ObjectComplexPropertyMapping.cs
- OdbcDataAdapter.cs
- ImageField.cs
- NullToBooleanConverter.cs
- Opcode.cs
- AddInBase.cs
- GacUtil.cs
- JsonObjectDataContract.cs
- RuntimeUtils.cs
- Attributes.cs
- LongValidator.cs
- ArrayHelper.cs
- sortedlist.cs
- TimeStampChecker.cs
- ProxyAttribute.cs
- OrderByBuilder.cs
- Rectangle.cs
- XmlValueConverter.cs
- SetState.cs
- TraceHelpers.cs
- PasswordRecovery.cs
- PropertyGridCommands.cs
- DataGridViewSelectedCellCollection.cs
- CellPartitioner.cs
- LiteralControl.cs
- AffineTransform3D.cs
- ThreadStateException.cs
- OleDbPropertySetGuid.cs
- SQLSingleStorage.cs
- XmlSchemaNotation.cs
- XmlSchemaAnyAttribute.cs
- TextTreeExtractElementUndoUnit.cs
- GeometryGroup.cs
- MenuEventArgs.cs
- FormsAuthenticationEventArgs.cs
- NavigationProgressEventArgs.cs
- URI.cs
- QueryExpression.cs
- RichTextBoxAutomationPeer.cs
- HttpWriter.cs
- OdbcError.cs
- SqlInternalConnection.cs
- OleDbConnectionInternal.cs
- WebBrowserNavigatedEventHandler.cs
- PrintingPermission.cs
- ModelTypeConverter.cs
- AuthorizationRuleCollection.cs
- URIFormatException.cs
- XmlSchemaSubstitutionGroup.cs
- PointLight.cs
- Win32SafeHandles.cs
- ToolStripItemClickedEventArgs.cs
- Dispatcher.cs
- XmlRawWriter.cs
- SqlBulkCopyColumnMapping.cs
- UnsafeMethods.cs
- TableRowCollection.cs