public static int Enqueue <T>(this IBackgroundJobClient client, Expression <Func <T, Task> > methodCall, string queue = "default", int maxRetries = 10, Guid?contextId = null, string description = null) { if (client == null) { throw new ArgumentNullException(nameof(client)); } return(client.CreateAndEnqueue(Job.FromExpression(methodCall), queue, maxRetries, contextId, description)); }