86 references to UdpConstants
System.ServiceModel.Channels (86)
System\ServiceModel\Channels\ServerUdpOutputChannel.cs (1)
279if (!destination.Scheme.Equals(UdpConstants.Scheme, StringComparison.OrdinalIgnoreCase))
System\ServiceModel\Channels\UdpChannelBase.cs (2)
52this.maxPendingMessagesTotalSize = maxPendingMessagesTotalSize == UdpConstants.Defaults.DefaultMaxPendingMessagesTotalSize ? UdpConstants.Defaults.MaxPendingMessagesTotalSize : maxPendingMessagesTotalSize;
System\ServiceModel\Channels\UdpChannelFactory.cs (4)
30if (this.udpTransportBindingElement.MaxReceivedMessageSize <= UdpConstants.MaxMessageSizeOverIPv4 && 45int maxBufferSize = (int)Math.Min(transportBindingElement.MaxReceivedMessageSize, UdpConstants.MaxMessageSizeOverIPv4); 89if (!via.Scheme.Equals(UdpConstants.Scheme, StringComparison.OrdinalIgnoreCase)) 358UdpConstants.PendingReceiveCountPerProcessor * Environment.ProcessorCount,
System\ServiceModel\Channels\UdpChannelListener.cs (6)
55if (this.udpTransportBindingElement.MaxReceivedMessageSize <= UdpConstants.MaxMessageSizeOverIPv4 && 64int maxBufferSize = (int)Math.Min(udpTransportBindingElement.MaxReceivedMessageSize, UdpConstants.MaxMessageSizeOverIPv4); 103return UdpConstants.Defaults.ReceiveTimeout; 111return UdpConstants.Defaults.SendTimeout; 144return UdpConstants.Scheme; 372UdpConstants.PendingReceiveCountPerProcessor * Environment.ProcessorCount,
System\ServiceModel\Channels\UdpRequestContext.cs (1)
36UriBuilder uriBuilder = new UriBuilder(UdpConstants.Scheme, remoteEndpointMessageProperty.Address, remoteEndpointMessageProperty.Port);
System\ServiceModel\Channels\UdpRetransmissionSettings.cs (8)
31UdpConstants.Defaults.DelayLowerBoundTimeSpan, UdpConstants.Defaults.DelayUpperBoundTimeSpan, UdpConstants.Defaults.MaxDelayPerRetransmissionTimeSpan) 84[DefaultValue(UdpConstants.Defaults.MaxUnicastRetransmitCount)] 102[DefaultValue(UdpConstants.Defaults.MaxMulticastRetransmitCount)] 176return !TimeSpansEqual(this.delayLowerBound, UdpConstants.Defaults.DelayLowerBoundTimeSpan); 181return !TimeSpansEqual(this.delayUpperBound, UdpConstants.Defaults.DelayUpperBoundTimeSpan); 186return !TimeSpansEqual(this.maxDelayPerRetransmission, UdpConstants.Defaults.MaxDelayPerRetransmissionTimeSpan);
System\ServiceModel\Channels\UdpTransportBindingElement.cs (20)
33this.duplicateMessageHistoryLength = UdpConstants.Defaults.DuplicateMessageHistoryLength; 34this.maxPendingMessagesTotalSize = UdpConstants.Defaults.DefaultMaxPendingMessagesTotalSize; 37this.socketReceiveBufferSize = UdpConstants.Defaults.SocketReceiveBufferSize; 38this.timeToLive = UdpConstants.Defaults.TimeToLive; 52[DefaultValue(UdpConstants.Defaults.DuplicateMessageHistoryLength)] 68[DefaultValue(UdpConstants.Defaults.DefaultMaxPendingMessagesTotalSize)] 78const long min = UdpConstants.MinPendingMessagesTotalSize; 89[DefaultValue(UdpConstants.Defaults.MulticastInterfaceId)] 111get { return UdpConstants.Scheme; } 114[DefaultValue(UdpConstants.Defaults.SocketReceiveBufferSize)] 121if (value < UdpConstants.MinReceiveBufferSize) 124SR.ArgumentOutOfMinRange(UdpConstants.MinReceiveBufferSize)); 131[DefaultValue(UdpConstants.Defaults.TimeToLive)] 138if (value < UdpConstants.MinTimeToLive || value > UdpConstants.MaxTimeToLive) 141SR.ArgumentOutOfMinMaxRange(UdpConstants.MinTimeToLive, UdpConstants.MaxTimeToLive)); 256TransportBindingElement.ExportWsdlEndpoint(exporter, context, UdpConstants.WsdlSoapUdpTransportUri, addressingVersion); 292if (assertion.LocalName.Equals(UdpConstants.RetransmissionEnabled, StringComparison.Ordinal)) 294this.DuplicateMessageHistoryLength = UdpConstants.Defaults.DuplicateMessageHistoryLengthWithRetransmission;
System\ServiceModel\Channels\UdpTransportBindingElementPolicy.cs (3)
41XmlElement assertion = Document.CreateElement(UdpConstants.WsdlSoapUdpTransportPrefix, UdpConstants.RetransmissionEnabled, UdpConstants.WsdlSoapUdpTransportNamespace);
System\ServiceModel\Channels\UdpTransportImporter.cs (2)
32if (!string.IsNullOrEmpty(transportUri) && transportUri.Equals(UdpConstants.WsdlSoapUdpTransportUri, StringComparison.Ordinal)) 48if (transportUri != null && transportUri.Equals(UdpConstants.WsdlSoapUdpTransportUri, StringComparison.Ordinal) && !context.BindingElements.Contains(typeof(TransportBindingElement)))
System\ServiceModel\Channels\UdpUtility.cs (6)
45factory = UdpConstants.Defaults.MessageEncoderFactory; 104return CreateListenSocket(ipAddress, ref port, receiveBufferSize, timeToLive, UdpConstants.Defaults.InterfaceIndex, false, false); 458if (interfaceIndex != UdpConstants.Defaults.InterfaceIndex) 497IPv6MulticastOption multicastGroup = (interfaceIndex == UdpConstants.Defaults.InterfaceIndex ? 506MulticastOption multicastGroup = (interfaceIndex == UdpConstants.Defaults.InterfaceIndex ? 578return Math.Min(UdpConstants.MaxMessageSizeOverIPv4, maxReceivedMessageSize);
System\ServiceModel\Configuration\UdpBindingElement.cs (10)
31[ConfigurationProperty(UdpTransportConfigurationStrings.DuplicateMessageHistoryLength, DefaultValue = UdpConstants.Defaults.DuplicateMessageHistoryLength)] 47[ConfigurationProperty(UdpTransportConfigurationStrings.MaxRetransmitCount, DefaultValue = UdpConstants.Defaults.MaxRetransmitCount)] 55[ConfigurationProperty(UdpTransportConfigurationStrings.MaxPendingMessagesTotalSize, DefaultValue = UdpConstants.Defaults.DefaultMaxPendingMessagesTotalSize)] 56[LongValidator(MinValue = UdpConstants.MinPendingMessagesTotalSize)] 64[ConfigurationProperty(UdpTransportConfigurationStrings.MaxReceivedMessageSize, DefaultValue = UdpConstants.Defaults.MaxReceivedMessageSize)] 72[ConfigurationProperty(UdpTransportConfigurationStrings.MulticastInterfaceId, DefaultValue = UdpConstants.Defaults.MulticastInterfaceId)] 86[ConfigurationProperty(UdpTransportConfigurationStrings.TextEncoding, DefaultValue = UdpConstants.Defaults.EncodingString)] 95[ConfigurationProperty(UdpTransportConfigurationStrings.TimeToLive, DefaultValue = UdpConstants.Defaults.TimeToLive)] 96[IntegerValidator(MinValue = UdpConstants.MinTimeToLive, MaxValue = UdpConstants.MaxTimeToLive)]
System\ServiceModel\Configuration\UdpRetransmissionSettingsElement.cs (8)
41[ConfigurationProperty(UdpTransportConfigurationStrings.DelayLowerBound, DefaultValue = UdpConstants.Defaults.DelayLowerBound)] 43[ServiceModelTimeSpanValidator(MinValueString = UdpConstants.TimeSpanZero)] 50[ConfigurationProperty(UdpTransportConfigurationStrings.DelayUpperBound, DefaultValue = UdpConstants.Defaults.DelayUpperBound)] 52[ServiceModelTimeSpanValidator(MinValueString = UdpConstants.TimeSpanZero)] 59[ConfigurationProperty(UdpTransportConfigurationStrings.MaxDelayPerRetransmission, DefaultValue = UdpConstants.Defaults.MaxDelayPerRetransmission)] 61[ServiceModelTimeSpanValidator(MinValueString = UdpConstants.TimeSpanZero)] 68[ConfigurationProperty(UdpTransportConfigurationStrings.MaxMulticastRetransmitCount, DefaultValue = UdpConstants.Defaults.MaxMulticastRetransmitCount)] 76[ConfigurationProperty(UdpTransportConfigurationStrings.MaxUnicastRetransmitCount, DefaultValue = UdpConstants.Defaults.MaxUnicastRetransmitCount)]
System\ServiceModel\Configuration\UdpTransportElement.cs (9)
58[ConfigurationProperty(UdpTransportConfigurationStrings.DuplicateMessageHistoryLength, DefaultValue = UdpConstants.Defaults.DuplicateMessageHistoryLength)] 66[ConfigurationProperty(UdpTransportConfigurationStrings.MaxPendingMessagesTotalSize, DefaultValue = UdpConstants.Defaults.DefaultMaxPendingMessagesTotalSize)] 67[LongValidator(MinValue = UdpConstants.MinPendingMessagesTotalSize)] 74[ConfigurationProperty(UdpTransportConfigurationStrings.MulticastInterfaceId, DefaultValue = UdpConstants.Defaults.MulticastInterfaceId)] 82[ConfigurationProperty(UdpTransportConfigurationStrings.SocketReceiveBufferSize, DefaultValue = UdpConstants.Defaults.SocketReceiveBufferSize)] 83[IntegerValidator(MinValue = UdpConstants.MinReceiveBufferSize)] 90[ConfigurationProperty(UdpTransportConfigurationStrings.TimeToLive, DefaultValue = UdpConstants.Defaults.TimeToLive)] 91[IntegerValidator(MinValue = UdpConstants.MinTimeToLive, MaxValue = UdpConstants.MaxTimeToLive)]
System\ServiceModel\UdpBinding.cs (6)
61[DefaultValue(UdpConstants.Defaults.DuplicateMessageHistoryLength)] 87[DefaultValue(UdpConstants.Defaults.MaxRetransmitCount)] 101[DefaultValue(UdpConstants.Defaults.DefaultMaxPendingMessagesTotalSize)] 114[DefaultValue(UdpConstants.Defaults.MaxReceivedMessageSize)] 127[DefaultValue(UdpConstants.Defaults.MulticastInterfaceId)] 154[DefaultValue(UdpConstants.Defaults.TimeToLive)]