/// <summary> /// Creates a new instance. /// </summary> /// <param name="logRepository">The repositoro to update transaction log details to.</param> /// <param name="flowFileRepo">The flow file log repository.</param> /// <param name="flowFileController">The batch processor implementation.</param> public FlowFileControllerService( IFlowService flowService, IFlowFileLogRepo flowFileRepo, IFlowFileController flowFileController) { Guard.ArgumentNotNull(flowService, nameof(flowService)); Guard.ArgumentNotNull(flowFileController, nameof(flowFileController)); _flowService = flowService; FlowFileController = flowFileController; Interval = TimeSpan.FromSeconds(30); _dataFileTranRepo = flowFileRepo; // the time to poll for incoming data _timer = new Timer(); _timer.Elapsed += TryProcessNewFlowFiles; }
public FlowFileControllerService Get(IFlowFileLogRepo repository, IFlowFileController controller) { return(_context.Resolve <FlowFileControllerService>( new TypedParameter(typeof(IFlowFileLogRepo), repository), new TypedParameter(typeof(IFlowFileController), controller))); }