private object DoTimeoutOp(int timeout, IOp op) { this.CheckDisposed(); object obj2 = null; this.StartTimeoutTrack(timeout); try { obj2 = op.Execute(); } catch (Exception exception) { NSTrace.WriteLineError("SocketEx (ex): " + exception.ToString()); this.StopTimeoutTrack(exception); throw; } catch { NSTrace.WriteLineError("SocketEx (non clas ex): " + Environment.StackTrace); this.StopTimeoutTrack(this.NonCLSException); throw; } this.StopTimeoutTrack(null); return(obj2); }
object DoTimeoutOp(int timeout, IOp op) { CheckDisposed(); object ret = null; StartTimeoutTrack(timeout); try { ret = op.Execute(); } catch(Exception e) { NSTrace.WriteLineError("SocketEx (ex): " + e.ToString()); StopTimeoutTrack(e); throw; } /* catch { NSTrace.WriteLineError("SocketEx (non clas ex): " + Environment.StackTrace); StopTimeoutTrack(NonCLSException); throw; } */ StopTimeoutTrack(null); return ret; }