I have Job helper class. I need to call it from static class. How to I call SendNotifications() from other class. How to created the object of JobHelper class.
public class JobHelper : ITransientDependency { private readonly ILogger Logger; private readonly IAppUserService _appUserService;
public JobHelper(ILogger logger, IAppUserService appUserService)
{
Logger = logger;
_appUserService = appUserService;
}
public async Task SendNotifications(CreateNotificationsInput notificaton) { var users = await _appUserService.GetUsersForNotification(input); }
}