86 references to UdpConstants
System.ServiceModel.Channels (86)
System\ServiceModel\Channels\ServerUdpOutputChannel.cs (1)
279
if (!destination.Scheme.Equals(
UdpConstants
.Scheme, StringComparison.OrdinalIgnoreCase))
System\ServiceModel\Channels\UdpChannelBase.cs (2)
52
this.maxPendingMessagesTotalSize = maxPendingMessagesTotalSize ==
UdpConstants
.Defaults.DefaultMaxPendingMessagesTotalSize ?
UdpConstants
.Defaults.MaxPendingMessagesTotalSize : maxPendingMessagesTotalSize;
System\ServiceModel\Channels\UdpChannelFactory.cs (4)
30
if (this.udpTransportBindingElement.MaxReceivedMessageSize <=
UdpConstants
.MaxMessageSizeOverIPv4 &&
45
int maxBufferSize = (int)Math.Min(transportBindingElement.MaxReceivedMessageSize,
UdpConstants
.MaxMessageSizeOverIPv4);
89
if (!via.Scheme.Equals(
UdpConstants
.Scheme, StringComparison.OrdinalIgnoreCase))
358
UdpConstants
.PendingReceiveCountPerProcessor * Environment.ProcessorCount,
System\ServiceModel\Channels\UdpChannelListener.cs (6)
55
if (this.udpTransportBindingElement.MaxReceivedMessageSize <=
UdpConstants
.MaxMessageSizeOverIPv4 &&
64
int maxBufferSize = (int)Math.Min(udpTransportBindingElement.MaxReceivedMessageSize,
UdpConstants
.MaxMessageSizeOverIPv4);
103
return
UdpConstants
.Defaults.ReceiveTimeout;
111
return
UdpConstants
.Defaults.SendTimeout;
144
return
UdpConstants
.Scheme;
372
UdpConstants
.PendingReceiveCountPerProcessor * Environment.ProcessorCount,
System\ServiceModel\Channels\UdpRequestContext.cs (1)
36
UriBuilder uriBuilder = new UriBuilder(
UdpConstants
.Scheme, remoteEndpointMessageProperty.Address, remoteEndpointMessageProperty.Port);
System\ServiceModel\Channels\UdpRetransmissionSettings.cs (8)
31
UdpConstants
.Defaults.DelayLowerBoundTimeSpan,
UdpConstants
.Defaults.DelayUpperBoundTimeSpan,
UdpConstants
.Defaults.MaxDelayPerRetransmissionTimeSpan)
84
[DefaultValue(
UdpConstants
.Defaults.MaxUnicastRetransmitCount)]
102
[DefaultValue(
UdpConstants
.Defaults.MaxMulticastRetransmitCount)]
176
return !TimeSpansEqual(this.delayLowerBound,
UdpConstants
.Defaults.DelayLowerBoundTimeSpan);
181
return !TimeSpansEqual(this.delayUpperBound,
UdpConstants
.Defaults.DelayUpperBoundTimeSpan);
186
return !TimeSpansEqual(this.maxDelayPerRetransmission,
UdpConstants
.Defaults.MaxDelayPerRetransmissionTimeSpan);
System\ServiceModel\Channels\UdpTransportBindingElement.cs (20)
33
this.duplicateMessageHistoryLength =
UdpConstants
.Defaults.DuplicateMessageHistoryLength;
34
this.maxPendingMessagesTotalSize =
UdpConstants
.Defaults.DefaultMaxPendingMessagesTotalSize;
37
this.socketReceiveBufferSize =
UdpConstants
.Defaults.SocketReceiveBufferSize;
38
this.timeToLive =
UdpConstants
.Defaults.TimeToLive;
52
[DefaultValue(
UdpConstants
.Defaults.DuplicateMessageHistoryLength)]
68
[DefaultValue(
UdpConstants
.Defaults.DefaultMaxPendingMessagesTotalSize)]
78
const long min =
UdpConstants
.MinPendingMessagesTotalSize;
89
[DefaultValue(
UdpConstants
.Defaults.MulticastInterfaceId)]
111
get { return
UdpConstants
.Scheme; }
114
[DefaultValue(
UdpConstants
.Defaults.SocketReceiveBufferSize)]
121
if (value <
UdpConstants
.MinReceiveBufferSize)
124
SR.ArgumentOutOfMinRange(
UdpConstants
.MinReceiveBufferSize));
131
[DefaultValue(
UdpConstants
.Defaults.TimeToLive)]
138
if (value <
UdpConstants
.MinTimeToLive || value >
UdpConstants
.MaxTimeToLive)
141
SR.ArgumentOutOfMinMaxRange(
UdpConstants
.MinTimeToLive,
UdpConstants
.MaxTimeToLive));
256
TransportBindingElement.ExportWsdlEndpoint(exporter, context,
UdpConstants
.WsdlSoapUdpTransportUri, addressingVersion);
292
if (assertion.LocalName.Equals(
UdpConstants
.RetransmissionEnabled, StringComparison.Ordinal))
294
this.DuplicateMessageHistoryLength =
UdpConstants
.Defaults.DuplicateMessageHistoryLengthWithRetransmission;
System\ServiceModel\Channels\UdpTransportBindingElementPolicy.cs (3)
41
XmlElement assertion = Document.CreateElement(
UdpConstants
.WsdlSoapUdpTransportPrefix,
UdpConstants
.RetransmissionEnabled,
UdpConstants
.WsdlSoapUdpTransportNamespace);
System\ServiceModel\Channels\UdpTransportImporter.cs (2)
32
if (!string.IsNullOrEmpty(transportUri) && transportUri.Equals(
UdpConstants
.WsdlSoapUdpTransportUri, StringComparison.Ordinal))
48
if (transportUri != null && transportUri.Equals(
UdpConstants
.WsdlSoapUdpTransportUri, StringComparison.Ordinal) && !context.BindingElements.Contains(typeof(TransportBindingElement)))
System\ServiceModel\Channels\UdpUtility.cs (6)
45
factory =
UdpConstants
.Defaults.MessageEncoderFactory;
104
return CreateListenSocket(ipAddress, ref port, receiveBufferSize, timeToLive,
UdpConstants
.Defaults.InterfaceIndex, false, false);
458
if (interfaceIndex !=
UdpConstants
.Defaults.InterfaceIndex)
497
IPv6MulticastOption multicastGroup = (interfaceIndex ==
UdpConstants
.Defaults.InterfaceIndex ?
506
MulticastOption multicastGroup = (interfaceIndex ==
UdpConstants
.Defaults.InterfaceIndex ?
578
return 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)]