private async Task<InvocationState.InvocationRow> ConnectAndExec(string proc, object parameters)
{
using (var connection = await Connect())
{
return (await connection.QueryAsync<InvocationState.InvocationRow>(
proc,
parameters,
commandType: CommandType.StoredProcedure))
.SingleOrDefault();
}
}