<pollingDuplex> (Silverlight)
Microsoft Silverlight will reach end of support after October 2021. Learn more.
This element configures polling duplex communication between a service and a client.
Schema Hierarchy
<system.serviceModel> (Silverlight)
<bindings> (Silverlight)
<customBinding> (Silverlight)
<binding> of <customBinding> (Silverlight)
<pollingDuplex> (Silverlight)
Syntax
<customBinding>
<binding>
<pollingDuplex duplexMode=”SingleMessagesPerPoll/MultipleMessagesPerPoll” inactivityTimeout=”TimeSpan” clientPollTimeout=”TimeSpan” maxPendingMessagesPerSession=”Integer”/>
</binding>
</customBinding>
Attributes and Elements
The following sections describe attributes, child elements, and parent elements.
Attributes
Attribute | Description |
---|---|
duplexMode |
An optional value that indicates how the server behaves in response to client polling. |
inactivityTimeout |
An optional value that indicates the maximum interval of time that can pass without activity on a channel before the client or server channel enters a faulted state. The default value is 10 minutes. |
clientPollTimeout |
An optional value that indicated the interval of time that a client polling request has to complete before timing out. |
maxPendingMessagesPerSession |
An optional value that indicates the maximum number of pending messages per session. |
Child Elements
Element | Description |
---|---|
(None) |
Parent Elements
Element | Description |
---|---|
Defines the binding capabilities of the custom binding. |
Text Value
Remarks
Example
Create the polling duplex binding element for a custom binding that uses a MultipleMessagesPerPoll value for the mode of duplex communication.
<system.serviceModel>
<bindings>
<!-- configure a custom binding -->
<customBinding>
<binding name="CustomBinding1">
<pollingDuplex duplexMode="MultipleMessagesPerPoll" />
<httpTransport />
</binding>
</customBinding>
</bindings>
</system.serviceModel>
See Also
Reference
PollingDuplexBindingElement
PollingDuplexMode
PollingDuplexHttpBinding