Lightstreamer .Net Adapter 1.10.0
ContentsIndexHome
PreviousUpNext
IMetadataProvider.NotifyMpnDeviceTokenChange Method

Called by Lightstreamer Kernel to check that a User is enabled to change the token of a MPN device. If the check succeeds, this also notifies the Metadata Adapter that future client requests should be issued by specifying the new device token.  

Take particular precautions when authorizing device token changes, if possible ensure the user is entitled to the new device token.  

Push Notifications are not supported in Moderato edition.

C++
void NotifyMpnDeviceTokenChange(string user, MpnDeviceInfo device, string newDeviceToken);
C#
void NotifyMpnDeviceTokenChange(string user, MpnDeviceInfo device, string newDeviceToken);
Visual Basic
Function NotifyMpnDeviceTokenChange(user As string, device As MpnDeviceInfo, newDeviceToken As string) As void
Parameters 
Description 
string user 
A User name. 
MpnDeviceInfo device 
Specifies a MPN device. 
string newDeviceToken 
The new token being assigned to the device. 
Exceptions 
Description 
if the User is not allowed to change the specified device token. 
if something is wrong in the parameters, such as inconsistent information about the device.