private void resetRepositories()
 {
     _tasksRepository       = null;
     _flowRepository        = null;
     _stateRepository       = null;
     _taskHistoryRepository = null;
 }
 public TransferFlowController(IMapper mapper, IFlowRepository repository, IUnitOfWork unitOfWork, IOptions <AppSettings> appSettings)
 {
     _mapper      = mapper;
     _repository  = repository;
     _unitOfWork  = unitOfWork;
     _appSettings = appSettings.Value;
 }
 public UnitOfWork(
     IFlowRepository flowRepository,
     IStateRepository stateRepository,
     ITaskRepository taskRepository,
     StateManagementContext stateManagementContext)
 {
     FlowRepository          = flowRepository;
     StateRepository         = stateRepository;
     _stateManagementContext = stateManagementContext;
     TaskRepository          = taskRepository;
 }
Esempio n. 4
0
 /// <summary>
 /// </summary>
 public FlowExtension(IFlowRepository flowRepository)
 {
     this.flowRepository = flowRepository;
 }
Esempio n. 5
0
 /// <summary>
 /// </summary>
 public FlowStore(IFlowRepository repository)
 {
     this.repository = repository;
 }
Esempio n. 6
0
 public FlowService(IFlowRepository flowRepository)
 {
     _flowRepository = flowRepository;
 }
Esempio n. 7
0
 public MaterialController(IFlowRepository flowRepository)
 {
     _flowRepository = flowRepository;
 }
Esempio n. 8
0
 public FlowRepositoryTest()
 {
     flowRepository = (IFlowRepository)MockStatic.GetMock();
 }
Esempio n. 9
0
 public FlowController(ILogger <FlowController> logger, IMailService mailService, IFlowRepository flowRepository)
 {
     _log            = logger;
     _mailService    = mailService;
     _flowRepository = flowRepository;
 }
Esempio n. 10
0
 public Engine(string name, IFlowRepository FlowRepository)
 {
     this.FlowRepository = FlowRepository;
     this.Name           = name;
 }
Esempio n. 11
0
 public FlowCommandHandler(IFlowRepository flowRepository, ILoggingService loggingService)
 {
     _flowRepository = flowRepository;
     _loggingService = loggingService;
 }
Esempio n. 12
0
 /// <summary>
 /// Enables Tapeti Flow.
 /// </summary>
 /// <param name="config"></param>
 /// <param name="flowRepository">An optional IFlowRepository implementation to persist flow state. If not provided, flow state will be lost when the application restarts.</param>
 /// <returns></returns>
 public static ITapetiConfigBuilder WithFlow(this ITapetiConfigBuilder config, IFlowRepository flowRepository = null)
 {
     config.Use(new FlowExtension(flowRepository));
     return(config);
 }
 public FlowMiddleware(IFlowRepository flowRepository)
 {
     this.flowRepository = flowRepository;
 }
Esempio n. 14
0
 public Engine(string name, IFlowRepository flowRepository, IGraphRepository graphRepository = null)
 {
     this.FlowRepository  = flowRepository;
     this.GraphRepository = graphRepository ?? WFlow.Repositories.GraphRepository.Default;
     this.Name            = name;
 }
 public static TapetiConfig WithFlow(this TapetiConfig config, IFlowRepository flowRepository = null)
 {
     config.Use(new FlowMiddleware(flowRepository));
     return(config);
 }