Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / System.ServiceModel.Discovery / System / ServiceModel / Discovery / DiscoveryDefaults.cs / 1305376 / DiscoveryDefaults.cs
//---------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //--------------------------------------------------------------- namespace System.ServiceModel.Discovery { using System.ServiceModel.Channels; using System.Runtime; using System.Diagnostics.CodeAnalysis; using System.Globalization; static class DiscoveryDefaults { public static readonly TimeSpan DiscoveryOperationDuration = TimeSpan.Parse(DiscoveryOperationDurationString, CultureInfo.InvariantCulture); public static readonly Uri ScopeMatchBy = FindCriteria.ScopeMatchByPrefix; public const string DiscoveryOperationDurationString = "00:00:20"; public const int DuplicateMessageHistoryLength = 2 * 1028; public static class Udp { [SuppressMessage(FxCop.Category.Security, FxCop.Rule.DoNotDeclareReadOnlyMutableReferenceTypes)] public static readonly Uri IPv4MulticastAddress = new Uri(ProtocolStrings.Udp.MulticastIPv4Address); [SuppressMessage(FxCop.Category.Security, FxCop.Rule.DoNotDeclareReadOnlyMutableReferenceTypes)] public static readonly Uri IPv6MulticastAddress = new Uri(ProtocolStrings.Udp.MulticastIPv6Address); public static readonly TimeSpan AppMaxDelay = TimeSpan.Parse(AppMaxDelayString, CultureInfo.InvariantCulture); public const string AppMaxDelayString = "00:00:00.500"; public const int DuplicateMessageHistoryLength = 4 * 1028; public const int MaxUnicastRetransmitCount = 1; public const int MaxMulticastRetransmitCount = 2; public static UdpTransportBindingElement CreateUdpTransportBindingElement() { UdpTransportBindingElement udpBE = new UdpTransportBindingElement(); udpBE.EnableMulticast = true; udpBE.RetransmissionSettings.MaxUnicastRetransmitCount = MaxUnicastRetransmitCount; udpBE.RetransmissionSettings.MaxMulticastRetransmitCount = MaxMulticastRetransmitCount; udpBE.RetransmissionSettings.DelayLowerBound = TimeSpan.FromMilliseconds(50); udpBE.RetransmissionSettings.DelayUpperBound = TimeSpan.FromMilliseconds(250); udpBE.RetransmissionSettings.MaxDelayPerRetransmission = TimeSpan.FromMilliseconds(500); udpBE.DuplicateMessageHistoryLength = DuplicateMessageHistoryLength; return udpBE; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CheckedPointers.cs
- SiteMapDataSourceView.cs
- ToolStripManager.cs
- CompositeDuplexBindingElement.cs
- CookielessHelper.cs
- WebPartConnectionsEventArgs.cs
- ImageButton.cs
- StringValidatorAttribute.cs
- FolderLevelBuildProvider.cs
- BypassElementCollection.cs
- ChangeBlockUndoRecord.cs
- UnSafeCharBuffer.cs
- connectionpool.cs
- DataRowIndexBuffer.cs
- NameValuePermission.cs
- Rect.cs
- baseaxisquery.cs
- TextSchema.cs
- ConnectionManagementElementCollection.cs
- COM2EnumConverter.cs
- DifferencingCollection.cs
- X500Name.cs
- ProfilePropertySettingsCollection.cs
- HashCodeCombiner.cs
- DataServiceConfiguration.cs
- IRCollection.cs
- TypeSystemHelpers.cs
- SqlCacheDependencyDatabaseCollection.cs
- RtfToXamlLexer.cs
- BaseConfigurationRecord.cs
- HostedHttpContext.cs
- AutomationElement.cs
- TypeHelper.cs
- DataException.cs
- LicenseProviderAttribute.cs
- SizeConverter.cs
- SettingsBase.cs
- GridViewDeletedEventArgs.cs
- SiteMapPath.cs
- ResXBuildProvider.cs
- SpeechSeg.cs
- AppSettingsExpressionBuilder.cs
- TypedServiceChannelBuilder.cs
- ProxyAttribute.cs
- TableDesigner.cs
- ReservationCollection.cs
- ItemContainerProviderWrapper.cs
- CheckBox.cs
- cookiecontainer.cs
- SortFieldComparer.cs
- DotNetATv1WindowsLogEntrySerializer.cs
- ReadOnlyCollection.cs
- TimeoutException.cs
- WsdlBuildProvider.cs
- TableRowGroup.cs
- HttpCapabilitiesEvaluator.cs
- DESCryptoServiceProvider.cs
- HttpRawResponse.cs
- Pair.cs
- _HeaderInfoTable.cs
- ForceCopyBuildProvider.cs
- UIAgentAsyncParams.cs
- ImageConverter.cs
- CodeExpressionStatement.cs
- DesignerToolboxInfo.cs
- SchemaCollectionPreprocessor.cs
- InheritanceAttribute.cs
- OpenTypeCommon.cs
- SingleTagSectionHandler.cs
- WebPartUtil.cs
- EdgeProfileValidation.cs
- QuaternionAnimation.cs
- SQLBoolean.cs
- Dispatcher.cs
- XamlHostingSectionGroup.cs
- DependencyObjectProvider.cs
- SqlCommandBuilder.cs
- TraceUtility.cs
- SelectionWordBreaker.cs
- DesignerAdapterAttribute.cs
- Win32KeyboardDevice.cs
- CheckBoxField.cs
- Property.cs
- CollectionDataContractAttribute.cs
- NativeMethods.cs
- BinaryNode.cs
- TypeSystemProvider.cs
- CardSpaceSelector.cs
- DisableDpiAwarenessAttribute.cs
- SiteMapNodeItemEventArgs.cs
- CollectionsUtil.cs
- HtmlInputReset.cs
- Parameter.cs
- JsonQNameDataContract.cs
- JsonReaderDelegator.cs
- CompleteWizardStep.cs
- TransformPatternIdentifiers.cs
- Encoding.cs
- VisualStyleElement.cs
- XmlSchemaSubstitutionGroup.cs