string RunProc(string s,Func<string,string> _a) { try { return _a.Invoke(s); } catch (Exception e) { var msg = e.Message; if (e.InnerException != null) msg = msg + e.InnerException.Message + e.StackTrace; msg = msg + "||InString:" + s; Common.WriteLog(DateTime.Now.ToString() + ":" + msg); return msg; } }
return RunProc(s,(x) => { return "success"; });
No comments:
Post a Comment
Note: only a member of this blog may post a comment.