EndExecute() abstract private method

abstract private EndExecute ( IAsyncResult ar ) : object
ar IAsyncResult
return object
Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
        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;
        }