Class PinpointClientBase<TChannel, TOptions>
The base class for clients for the Acuit Pinpoint TCP SOAP services.
public abstract class PinpointClientBase<TChannel, TOptions> : ClientBase<TChannel> where TChannel : class where TOptions : PinpointClientOptions
Type Parameters
TChannelThe channel to be used to connect to the service.
TOptionsThe type of the connection options class.
- Inheritance
-
PinpointClientBase<TChannel, TOptions>
- Derived
Constructors
PinpointClientBase(TOptions, Func<TOptions, NetTcpBinding>)
Initializes a new instance of the PinpointClientBase<TChannel, TOptions> class.
protected PinpointClientBase(TOptions options, Func<TOptions, NetTcpBinding> bindingCreator)
Parameters
optionsTOptionsThe client connection options.
bindingCreatorFunc<TOptions, NetTcpBinding>A delegate that creates a NetTcpBinding from the client connection options.
Exceptions
- ArgumentNullException
optionsis null.- ArgumentNullException
bindingCreatoris null.- InvalidOperationException
The options are invalid.
Methods
CreateNetTcpBinding(PinpointClientOptions)
Creates a new NetTcpBinding with common settings initialized.
protected static NetTcpBinding CreateNetTcpBinding(PinpointClientOptions options)
Parameters
optionsPinpointClientOptionsThe client options.
Returns
Exceptions
- ArgumentNullException
optionsis null.