Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

quartz .net core execute controller

//Service abstraction
public interface INotificationService {
    Task MyMethod();
}

public class NotificationService : INotificationService {
    private readonly ApplicationDbContext context;

    public NotificationService(ApplicationDbContext context) {
        this.context = context;
    }

    public async Task MyMethod() {
        await context.SaveChangesAsync();
    }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #quartz #core #execute #controller
ADD COMMENT
Topic
Name
7+9 =