Class NetMessagingTransportBindingElement
- Namespace
- Microsoft.ServiceBus.Messaging
- Assembly
- Microsoft.ServiceBus.dll
Represents the binding element used to specify a net messaging transport for transmitting messages on the Service Bus.
public sealed class NetMessagingTransportBindingElement : TransportBindingElement, IPolicyExportExtension, IWsdlExportExtension
- Inheritance
-
NetMessagingTransportBindingElement
- Implements
-
IPolicyExportExtensionIWsdlExportExtension
Constructors
NetMessagingTransportBindingElement()
Initializes a new instance of the NetMessagingTransportBindingElement class.
public NetMessagingTransportBindingElement()
Properties
PrefetchCount
Gets or sets the number of prefetch.
public int PrefetchCount { get; set; }
Property Value
- int
The number of prefetch.
Scheme
Gets the URI scheme for the transport.
public override string Scheme { get; }
Property Value
- string
The URI scheme for the transport.
SessionIdleTimeout
Gets or sets the timespan value that specifies period of inactivity that the session waits before timing out.
public TimeSpan SessionIdleTimeout { get; set; }
Property Value
- TimeSpan
The timespan value. The default value is 1 minute.
TransportSettings
Gets or sets the transport settings for the net messaging.
public NetMessagingTransportSettings TransportSettings { get; set; }
Property Value
- NetMessagingTransportSettings
The transport settings for the net messaging.
Methods
BuildChannelFactory<TChannel>(BindingContext)
Builds a channel factory.
public override IChannelFactory<TChannel> BuildChannelFactory<TChannel>(BindingContext context)
Parameters
context
BindingContextThe binding context.
Returns
- IChannelFactory<TChannel>
The interface implemented by the channel factory.
Type Parameters
TChannel
The type of the channel.
Exceptions
- ArgumentException
Thrown when TChannel isn’t a supported channel type.
BuildChannelListener<TChannel>(BindingContext)
Builds a channel listener.
public override IChannelListener<TChannel> BuildChannelListener<TChannel>(BindingContext context) where TChannel : class, IChannel
Parameters
context
BindingContextThe binding context.
Returns
- IChannelListener<TChannel>
An implemented System.ServiceModel.Channels.IChannelListener<> interface.
Type Parameters
TChannel
The type of the channel.
Exceptions
- ArgumentException
Thrown when TChannel isn’t a supported channel type.
CanBuildChannelFactory<T>(BindingContext)
Queries if the binding element can build a channel factory.
public override bool CanBuildChannelFactory<T>(BindingContext context)
Parameters
context
BindingContextThe binding context.
Returns
- bool
true if the binding element can build a channel factory for a specific type of channel; otherwise, false.
Type Parameters
T
The type of the channel.
Exceptions
- ArgumentNullException
Thrown when context is null.
CanBuildChannelListener<T>(BindingContext)
Queries if the binding element can build a channel listener.
public override bool CanBuildChannelListener<T>(BindingContext context) where T : class, IChannel
Parameters
context
BindingContextThe binding context.
Returns
- bool
true if the binding element can build a channel listener for a specific type of channel; otherwise, false.
Type Parameters
T
The type of the channel.
Exceptions
- ArgumentNullException
Thrown when context is null.
Clone()
Makes a deep copy of this binding element.
public override BindingElement Clone()
Returns
- BindingElement
A copy of this binding element.
GetProperty<T>(BindingContext)
Gets a specific binding element property.
public override T GetProperty<T>(BindingContext context) where T : class
Parameters
context
BindingContextThe binding context.
Returns
- T
The binding element property.
Type Parameters
T
The generic type parameter.