Example #1
0
 public GetProcessInstanceQueryHandler(
     IProcessInstanceQueryRepository caseInstanceQueryRepository,
     ILogger <GetProcessInstanceQueryHandler> logger)
 {
     _caseInstanceQueryRepository = caseInstanceQueryRepository;
     _logger = logger;
 }
            private FakeCaseJobServer()
            {
                _factory = new FakeHttpClientFactory();
                var serviceCollection = new ServiceCollection();

                serviceCollection.AddLogging();
                serviceCollection.AddProcessJobServer(callbackServerOpts: o =>
                {
                    o.WSHumanTaskAPI = "http://localhost";
                    o.CallbackUrl    = "http://localhost/{id}/{eltId}";
                });
                serviceCollection.AddSingleton <IHttpClientFactory>(_factory);
                _serviceProvider  = serviceCollection.BuildServiceProvider();
                _processJobServer = _serviceProvider.GetRequiredService <IProcessJobServer>();
                _processInstanceQueryRepository = _serviceProvider.GetRequiredService <IProcessInstanceQueryRepository>();
            }
 public SearchProcessInstancesQueryHandler(IProcessInstanceQueryRepository processInstanceQueryRepository)
 {
     _processInstanceQueryRepository = processInstanceQueryRepository;
 }
Example #4
0
 public ProcessInstanceEventHandler(IProcessInstanceCommandRepository processInstanceCommandRepository, IProcessInstanceQueryRepository processInstanceQueryRepository)
 {
     _processInstanceCommandRepository = processInstanceCommandRepository;
     _processInstanceQueryRepository   = processInstanceQueryRepository;
 }