Create a function with this header and attach it to the
onMessageDelivedToHandset event to receive notifications
about message delivery to handset events.
Parameters
messageID - The message
id that was returned by the SMS Gateway when you have posted
the message for sending using the
sendMessage method.
deliveryTime - The
timestamp that is returned by the SMS service provider about the delivery
Example
Step 1. - Create the event handling function:
void myDeliveredToHandsetHandler(string messageID, DateTime
deliveryTime)
{
console.writeln("The message is delivered to the handset");
};
Step 2. - Attach this event to the SMSClient object:
mySMSClient.onMessageDeliveredToHandset += ServerEventSink.wrap(myDeliveredToHandsetHandler);
Hint: Notice the ServerEventSink.wrap method, that is used to attach the event.
This wrapper is used to work around an error that can happen when
asynchronous callbacks are invoked in .NET remoting.
|