Lightstreamer .Net Adapter 1.11.0
ContentsIndexHome
PreviousUpNext
IMetadataProvider.NotifyMpnDeviceAccess Method

Called by Lightstreamer Kernel to check that a User is enabled to access the specified MPN device. The success of this method call is a prerequisite for all MPN operations, including the activation of a subscription, the deactivation of a subscription, the change of a device token, etc. Some of these operations have a subsequent specific notification, i.e. NotifyMpnSubscriptionActivation and NotifyMpnDeviceTokenChange.  

Take particular precautions when authorizing device access, if possible ensure the user is entitled to the specific platform, device token and application ID.  

Edition Note: Push Notifications is an optional feature, available depending on Edition and License Type. To know what features are enabled by your license, please see the License tab of the Monitoring Dashboard (by default, available at /dashboard). 

 

C++
void NotifyMpnDeviceAccess(string user, string sessionID, MpnDeviceInfo device);
C#
void NotifyMpnDeviceAccess(string user, string sessionID, MpnDeviceInfo device);
Visual Basic
Function NotifyMpnDeviceAccess(user As string, sessionID As string, device As MpnDeviceInfo) As void
Parameters 
Description 
string user 
A User name. 
string sessionID 
The ID of a Session owned by the User. 
MpnDeviceInfo device 
Specifies an MPN device. 
Exceptions 
Description 
if the User is not allowed to access the specified MPN device in the Session. 
if something is wrong in the parameters, such as inconsistent information about the device.