AggregateSource.EventStore.Framework.Catch.ExceptionOf C# (CSharp) Method

ExceptionOf() public static method

public static ExceptionOf ( Func action ) : System.Threading.Tasks.Task
action Func
return System.Threading.Tasks.Task
        public static async Task ExceptionOf(Func<Task> action)
        {
            // ReSharper disable EmptyGeneralCatchClause
            try
            {
                await action();
            }
            catch { }
            // ReSharper restore EmptyGeneralCatchClause
        }
    }

Same methods

Catch::ExceptionOf ( System.Action action ) : void