示例#1
0
 public IJob CreateJob(IJobInputTracker inputTracker, IJobOutputTracker outputTracker, IJobDefinition jobDefinition)
 {
     return _ioc.Get<IJob>(new []
     {
         new IOCConstructorArgument("inputTracker", inputTracker),
         new IOCConstructorArgument("outputTracker", outputTracker),
         new IOCConstructorArgument("jobDefinition", jobDefinition),
     });
 }
示例#2
0
        public StandardProcessJob(
            [IOC(false)] IJobInputTracker inputTracker,
            [IOC(false)] IJobOutputTracker outputTracker,
            [IOC(false)] IJobDefinition jobDefinition)
        {
            if (inputTracker == null) throw Ex.ArgNull(() => inputTracker);
            if (outputTracker == null) throw Ex.ArgNull(() => outputTracker);
            if (jobDefinition == null) throw Ex.ArgNull(() => jobDefinition);

            _inputTracker = inputTracker;
            _outputTracker = outputTracker;
            _jobDefinition = jobDefinition;
        }