public async Task <int> RunTests() { TryLog(() => con.Execute("[dbo].[LogRunningStoredProcedure]", new { }, null, 5, CommandType.StoredProcedure)); await TryLog(() => con.ExecuteAsync("[dbo].[LogRunningStoredProcedure]", new { }, null, 5, CommandType.StoredProcedure)); Console.WriteLine("Finished running"); return(1); }
public void Execute() { con.Execute("LogRunningStoredProcedure", new { }, null, 5, CommandType.StoredProcedure); }