Exemplo n.º 1
0
        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));
        }