Jump to content

Do not understand ServerMessages.TerminateTemplate


herculanojs

Recommended Posts

I'm having trouble understanding how it works.
 
I am sending an html text to end a session like this:
 
There have been faults here and I have an html message of instructions to the user.
UniSession.Terminate (my html message);
This works fine if I do not set anything in UniMainModule.ServerMessages.TerminateTemplate
 
Here I have a html message by standardizing the closure sa session and link to reconnection.
In the UniMainModule create I'm setting a different html code for UniMainModule.ServerMessages.TerminateTemplate for when the session is closed.
 
If UniMainModule.ServerMessages.TerminateTemplate I did not report anything, the first code works. If something is reported, the first code is ignored and the second code is shown.
 
If I sent a specific message to close the session, should not this message be observed?
 
---------------------------------------------------------------------------------
Estou com dificuldade para entender o funcionamento.
 
Estou enviando um texto html para encerrar uma sessão desta forma:
 
Aqui ocorreu falhas e tenho uma mensagem html de instruções ao usuário.
UniSession.Terminate( minha mensagem html);
Isso funciona bem, se eu não definir nada em UniMainModule.ServerMessages.TerminateTemplate
 
Aqui tenho uma mensagem html padronizando o encerramento sa sessão e link para reconexão.
No create do UniMainModule estou definindo um código diferente de html para UniMainModule.ServerMessages.TerminateTemplate para quando a sessão for encerrada.
 
Se UniMainModule.ServerMessages.TerminateTemplate eu não informo nada, o primeiro código funciona. Se informo algo, o primeiro código é ignorado e mostrado o segundo código.
 
Se enviei uma mensagem específica para encerramento da sessão, não deveria ser observado essa mensagem?

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...