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), }); }
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; }