DsmlSoapHttpConnection.EndSession Método
Definição
O método EndSession() encerra a sessão com o servidor DSML e limpa a propriedade SessionId.The EndSession() method ends the session with the DSML server and clears the SessionId property.
public:
override void EndSession();
public override void EndSession ();
override this.EndSession : unit -> unit
Public Overrides Sub EndSession ()
Exceções
Gerada quando há uma falha de comunicação com o servidor DSML.Thrown when there is a communications failure with the DSML server.
Gerada quando não há nenhuma sessão aberta.Thrown when there is no open session.
Comentários
O método será bloqueado enquanto aguarda uma resposta do servidor DSML e atingirá o tempo limite de acordo com a Timeout propriedade.The method will block while waiting for a response from the DSML server and will time out according to the Timeout property.
Se o servidor DSML já tiver encerrado a sessão por conta própria, um WebException será gerado.If the DSML server has already terminated the session on its own, a WebException will be thrown. Se o SessionId ainda for válido depois que a exceção for lançada, a solicitação nunca alcançou o servidor e a conexão ainda é considerada válida.If the SessionId is still valid after the exception is thrown, the request never reached the server and the connection is still considered valid.