I am implementing a WCF service with a Silverlight 3 client that uses PollingDuplexHttpBinding for communication. What are the processing alternatives when a client closes his browser without first disconnecting from the server?
I know that ultimately this will throw a TimeoutException, which I can catch, but is there a better way to catch it?
Thank.
You need something like this:
OperationContext.Current.Channel.Closed += new EventHandler(Channel_Closed);
The channel also throws a Faulted event, but the Closed event immediately closes.
Source: https://habr.com/ru/post/1749263/More articles:Disable CTRL + P in WPF DocumentViewer - c #Why can't IB see my IBAction? - iphoneZend Framework Form Element Validator - проверять поле, даже если оно не требуется - validationHow to write "OR" in Linq to Sql.Where () - c #SQL Server 2005: update rows in specified order (e.g. ORDER BY)? - sql-serverCSS centering text between two images - cssDoes the AjaxControlToolkit TabContainer ActiveTabChanged event fire twice when using the UpdatePanel and ToolkitScriptManager? - asp.netHow to create global context variables in JBoss? - javaудаление дополнительных материалов со страницы создания контента (Drupal 6.x) - formsHow to not include part of the regular expression - stringAll Articles