Exemple #1
0
 /// <summary>
 /// Retrives JavaScript code to send a Message from the client to the server.
 /// </summary>
 /// <param name="message">the message to send as string</param>
 /// <returns>A piece of JavaScript code</returns>
 public IJSPiece SendMessage(string message)
 {
     return(SendingFunction.callFunction(new JSStringValue(message)));
 }
Exemple #2
0
 /// <summary>
 /// Retrives JavaScript code to send a Message from the client to the server.
 /// </summary>
 /// <param name="messageGetter">The Method to get the Notification Contents from</param>
 /// <returns>A piece of JavaScript code</returns>
 public IJSPiece SendMessage(IJSPiece messageGetter)
 {
     return
         (SendingFunction.callFunction(
              new JSValue(messageGetter.GetJsCode(SessionData.CurrentSession, CallingContext.Inner))));
 }