aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Integration/Operation/ResumingJobEventArgs.cs
blob: 6a854635089687189312f4f96b0e509da28c693e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.BL.Entities;

namespace Tango.Integration.Operation
{
    public class ResumingJobEventArgs : EventArgs
    {
        private Func<Job,JobHandler> _approveAction;

        public String JobGuid { get; set; }

        public ResumingJobEventArgs(Func<Job, JobHandler> approveAction)
        {
            _approveAction = approveAction;
        }

        public JobHandler Approve(Job job)
        {
            return _approveAction(job);
        }
    }
}