﻿using System.Threading.Tasks;
using Microsoft.Azure.WebJobs;
using Microsoft.Extensions.Logging;
using NServiceBus;
using SFA.DAS.EmployerFinance.Messages.Commands;

namespace SFA.DAS.EmployerFinance.Jobs.ScheduledJobs
{
    public class ExpireFundsJob
    {
        private readonly IMessageSession _messageSession;

        public ExpireFundsJob(IMessageSession messageSession)
        {
            _messageSession = messageSession;
        }

        public Task Run([TimerTrigger("0 0 0 28 * *")] TimerInfo timer, ILogger logger)
        {
            return _messageSession.Send(new ExpireFundsCommand());
        }
    }
}
﻿using System.Threading.Tasks;
using Microsoft.Azure.WebJobs;
using Microsoft.Extensions.Logging;
using NServiceBus;
using SFA.DAS.EmployerFinance.Messages.Commands;

namespace SFA.DAS.EmployerFinance.Jobs.ScheduledJobs
{
    public class ExpireFundsJob
    {
        private readonly IMessageSession _messageSession;

        public ExpireFundsJob(IMessageSession messageSession)
        {
            _messageSession = messageSession;
        }

        public Task Run(
            [TimerTrigger("0 0 0 28 * *")] TimerInfo timer, 
            ILogger logger)
        {
            return Task.FromResult(0);
            // return _messageSession.Send(new ExpireFundsCommand());
        }
    }
}
Remove code to trigger expiry of funds processing until fix has been implemented for the calculation
Remove code to trigger expiry of funds processing until fix has been implemented for the calculation
