Class SmppOutbindClient
A SMPP session initiated by SMSC with Outbind command.
public class SmppOutbindClient : SmppClientBase, IDisposable
- Inheritance
-
SmppOutbindClient
- Implements
- Inherited Members
Constructors
SmppOutbindClient()
public SmppOutbindClient()
SmppOutbindClient(string)
public SmppOutbindClient(string name)
Parameters
name
string
Methods
ConnectAsync(SmppClientConnectionOptions)
Establish the network connection with ESME using SmppConnectionOptions.
public Task<bool> ConnectAsync(SmppClientConnectionOptions options)
Parameters
options
SmppClientConnectionOptionsThe connection options
Returns
Exceptions
- ObjectDisposedException
Thrown when the instance is disposed.
- ArgumentNullException
Thrown when
options
parameter is not defined.
DeliverAsync(IBuilder<DeliverSm>)
Submits an array of DeliverSm messages created from SMS builder.
public Task<DeliverSmResp[]> DeliverAsync(IBuilder<DeliverSm> builder)
Parameters
Returns
Exceptions
- ArgumentNullException
Thrown when
builder
is not defined.
DeliverAsync(DeliverSm)
Sends message from SMSC to ESME
public Task<DeliverSmResp> DeliverAsync(DeliverSm pdu)
Parameters
pdu
DeliverSm
Returns
Exceptions
- InvalidOperationException
Thrown when PDU serialization is failed.
- ArgumentNullException
Thrown when request instance is null.
- GenericNackSmppException
Thrown when remote side returns negative acknowledgement (GENERIC_NACK) response, which means invalid or unknown command.
DeliverAsync(params DeliverSm[])
Submits an array of DeliverSm messages to ESME.
public Task<DeliverSmResp[]> DeliverAsync(params DeliverSm[] pduList)
Parameters
pduList
DeliverSm[]
Returns
DeliverAsync(IEnumerable<DeliverSm>)
Submits a collection of DeliverSm messages to ESME.
public Task<IEnumerable<DeliverSmResp>> DeliverAsync(IEnumerable<DeliverSm> pduList)
Parameters
pduList
IEnumerable<DeliverSm>
Returns
OutbindAsync(OutBind)
Signal an ESME to originate a bind_receiver request to the SMSC.
public Task OutbindAsync(OutBind pdu)
Parameters
Returns
Exceptions
- SmppException
When SMPP session is not established.
Events
evBind
Occurs when Bind packet received
public event BindEventHandler evBind