skip to Main Content

Convert generic method as async – Asp.net

I have following generic method in abstract class which is in many places across application: protected T Execute<T>(Func<T> func) { try { return func(); } catch (InvalidOperationException invalidEx) { throw new InvalidException(invalidEx.Message, invalidEx); } catch (SqlException sqlEx) { throw new…

VIEW QUESTION
Back To Top
Search