I've this method:
public class Publish
{
public async Task NowAsync(bool isFinal)
{
//...
}
}
and I want to pass it as a parameter here instead of () => Console.WriteLine()
:
RecurringJob.AddOrUpdate("name", () => Console.WriteLine("Hello"));
AddOrUpdate
method accepts a parameter of type Expression<Action>
How can I do it? thanks.