コード例 #1
0
        async void connection_Error(object sender, ConnectionErrorEventArgs e)
        {

            await @lock.WriterLockAsync();

            try
            {

                if (connection == sender)
                    LogoutInner(LogoutReason.ConnectionError, e.Exception);

            }
            finally
            {
                @lock.WriterRelease();
            }

        }
コード例 #2
0
 void OnError(ConnectionErrorEventArgs e)
 {
     EventHandler<ConnectionErrorEventArgs> handler = Error;
     if (handler != null) handler(this, e);
 }