public GetMostRecentState ( string jobName ) : Task |
||
jobName | string | |
return | Task |
public virtual Task<InvocationState> GetMostRecentState(string jobName)
{
return ConnectAndQuerySingle(@"
SELECT TOP 1 *
FROM work.Invocations WHERE [Job] = @jobName
ORDER BY [UpdatedAt] DESC",
new { jobName });
}