EndExecute() abstract private method

abstract private EndExecute ( IAsyncResult ar ) : object
ar IAsyncResult
return object
コード例 #1
0
        private object EndTimeoutOp(IOp op, IAsyncResult ar)
        {
            object obj2 = null;

            try
            {
                obj2 = op.EndExecute(ar);
            }
            catch (Exception exception)
            {
                NSTrace.WriteLineError("SocketEx.E (ex): " + exception.ToString());
                this.StopTimeoutTrack(exception);
                throw;
            }
            catch
            {
                NSTrace.WriteLineError("SocketEx.E (Non CLS ex): " + Environment.StackTrace);
                this.StopTimeoutTrack(this.NonCLSException);
                throw;
            }
            this.StopTimeoutTrack(null);
            return(obj2);
        }
コード例 #2
0
ファイル: SocketEx.cs プロジェクト: NikolayIT/RatioMaster.NET
        object EndTimeoutOp(IOp op, IAsyncResult ar)
        {
            object ret = null;
            try
            {
                ret = op.EndExecute(ar);
            }
            catch(Exception e)
            {
                NSTrace.WriteLineError("SocketEx.E (ex): " + e.ToString());
                StopTimeoutTrack(e);
                throw;
            }

            /*
            catch
            {
                NSTrace.WriteLineError("SocketEx.E (Non CLS ex): " + Environment.StackTrace);
                StopTimeoutTrack(NonCLSException);
                throw;
            }
            */
            StopTimeoutTrack(null);
            return ret;
        }