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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...