标签:result except bsp span call catch exception lse pre
public async Task<ResultDto<T>> Call(Func<Task<T>> action) { try { return new ResultDto<T>(await action()); } catch (Exception ex) { return new ResultDto<T>() { Success = false, Message = ex.Message }; } }
标签:result except bsp span call catch exception lse pre
原文地址:https://www.cnblogs.com/qlgbk/p/12690251.html