PushMessengerTMessengerSendToUserT Method (T, String)
|
Sends a message containing an object to client side, only the CMS clients with login of specified users will receive this message
Namespace:
Ingeniux.CMS.Models.Messaging
Assembly:
Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.308
Syntax public void SendToUser<T>(
T obj,
string userId
)
where T : class, new()
Public Sub SendToUser(Of T As {Class, New}) (
obj As T,
userId As String
)
public:
generic<typename T>
where T : ref class, gcnew()
virtual void SendToUser(
T obj,
String^ userId
) sealed
abstract SendToUser :
obj : 'T *
userId : string -> unit when 'T : not struct, new()
override SendToUser :
obj : 'T *
userId : string -> unit when 'T : not struct, new()
Parameters
- obj
- Type: T
The object to send out - userId
- Type: SystemString
User id of the user, that will receive this message at client side
Type Parameters
- T
- Type of the object to send as message
Implements
IPushMessengerSendToUserT(T, String)Remarks Client side can handle this message by creating function "serverRestMessage" on the hub object
See Also