Class PollingDuplexHttpBinding
Represents a binding that a Silverlight 5 client can use to configure endpoints that can communicate with Windows Communication Foundation (WCF) services that are similarly configured for duplex communication with a polling client.
Inheritance
Implements
Inherited Members
Namespace: System.ServiceModel.Channels
Assembly: OpenSilver.dll
Syntax
[NotImplemented]
public class PollingDuplexHttpBinding : Binding, IDefaultCommunicationTimeouts
Constructors
| Improve this Doc View SourcePollingDuplexHttpBinding()
Initializes a new instance of the PollingDuplexHttpBinding class.
Declaration
[NotImplemented]
public PollingDuplexHttpBinding()
PollingDuplexHttpBinding(PollingDuplexMode)
Initializes a new instance of the System.ServiceModel.PollingDuplexHttpBinding class with a specified mode of behavior on the server in response to client polling.
Declaration
[NotImplemented]
public PollingDuplexHttpBinding(PollingDuplexMode duplexMode)
Parameters
Type | Name | Description |
---|---|---|
PollingDuplexMode | duplexMode | The mode of behavior exhibited on a server in response to client polling when the communication between them is configured for duplex polling. |
PollingDuplexHttpBinding(PollingDuplexHttpSecurityMode)
Initializes a new instance of the PollingDuplexHttpBinding class with a specified type of security used by the binding.
Declaration
[NotImplemented]
public PollingDuplexHttpBinding(PollingDuplexHttpSecurityMode securityMode)
Parameters
Type | Name | Description |
---|---|---|
PollingDuplexHttpSecurityMode | securityMode | The value of PollingDuplexHttpSecurityMode that specifies the type of security that is used with the SOAP message and for the client. |
PollingDuplexHttpBinding(PollingDuplexHttpSecurityMode, PollingDuplexMode)
Initializes a new instance of the PollingDuplexHttpBinding class with a specified type of security and a specified mode of behavior on the server in the way it responses to client polling.
Declaration
[NotImplemented]
public PollingDuplexHttpBinding(PollingDuplexHttpSecurityMode securityMode, PollingDuplexMode duplexMode)
Parameters
Type | Name | Description |
---|---|---|
PollingDuplexHttpSecurityMode | securityMode | The value of PollingDuplexHttpSecurityMode that specifies the type of security that is used with the SOAP message and for the client. |
PollingDuplexMode | duplexMode | The mode of behavior exhibited on a server in response to client polling when the communication between them is configured for duplex polling. |
Properties
| Improve this Doc View SourceDuplexMode
Gets or sets a value that specifies how the server behaves in response to client polling when the communication is configured for duplex polling.
Declaration
[NotImplemented]
public PollingDuplexMode DuplexMode { get; set; }
Property Value
Type | Description |
---|---|
PollingDuplexMode | A PollingDuplexMode object whose value indicates how the server behaves in response to client polling when the communication is configured for duplex. The default value is SingleMessagePerPoll. |
EnvelopeVersion
Gets the version of SOAP that is used for messages that are processed by this binding.
Declaration
[NotImplemented]
public EnvelopeVersion EnvelopeVersion { get; }
Property Value
Type | Description |
---|---|
System.ServiceModel.EnvelopeVersion | The value of the EnvelopeVersion that is used with this binding. The value is always SOAP 1.2. |
InactivityTimeout
Gets or sets 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.
Declaration
[NotImplemented]
public TimeSpan InactivityTimeout { get; set; }
Property Value
Type | Description |
---|---|
System.TimeSpan | The System.TimeSpan value that specifies the maximum interval of time that can pass without activity on a channel before the channel enters a faulted state. |
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException | The value is less than zero, or it is larger than the maximum time allowed. |
MaxBufferSize
Gets or sets the maximum size for a buffer that receives messages from the channel.
Declaration
[NotImplemented]
public int MaxBufferSize { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The maximum size, in bytes, of a buffer that stores messages while they are processed for an endpoint configured with this binding. The default value is 65,536 bytes. |
MaxReceivedMessageSize
Gets or sets the maximum size for a message that can be received on a channel configured with this binding.
Declaration
[NotImplemented]
public long MaxReceivedMessageSize { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 |
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException | The value is less than zero. |
Scheme
Gets the URI transport scheme for the channels and listeners that are configured with this binding.
Declaration
[NotImplemented]
public override string Scheme { get; }
Property Value
Type | Description |
---|---|
System.String | "https" if the security mode in the transport binding element is set to System.ServiceModel.BasicHttpSecurityMode.Transport or System.ServiceModel.BasicHttpSecurityMode.TransportWithMessageCredentials; otherwise, "http". |
Overrides
Security
Gets the type of security used with this binding.
Declaration
[NotImplemented]
public PollingDuplexHttpSecurity Security { get; }
Property Value
Type | Description |
---|---|
PollingDuplexHttpSecurity | The PollingDuplexHttpSecurity that is used with this binding. The default value is System.ServiceModel.BasicHttpSecurityMode.None. |
TextEncoding
Gets or sets the character encoding that is used for the message text.
Declaration
[NotImplemented]
public Encoding TextEncoding { get; set; }
Property Value
Type | Description |
---|---|
System.Text.Encoding | The System.Text.Encoding that indicates the character encoding that is used. The default is System.Text.UTF8Encoding. |
UseTextEncoding
Gets or sets a value that indicates whether text or binary encoding is used for the message.
Declaration
[NotImplemented]
public bool UseTextEncoding { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | true if text encoding is used; false if binary encoding is used. |
Methods
| Improve this Doc View SourceCreateBindingElements()
Returns an ordered collection of binding elements contained in the current binding.
Declaration
[NotImplemented]
public override BindingElementCollection CreateBindingElements()
Returns
Type | Description |
---|---|
System.ServiceModel.Channels.BindingElementCollection | The System.ServiceModel.Channels.BindingElementCollection that contains the ordered stack of binding elements described by the PollingDuplexHttpBinding. |