Beispiel #1
0
 public InventoryController(
     HPlusSportsDbContext context,
     MediatR.IMediator mediator)
 {
     _context  = context;
     _mediator = mediator;
 }
Beispiel #2
0
 public ApplicationEventBus(
     MediatR.IMediator mediator,
     IPublishEndpoint publishEndpoint)
 {
     _mediator             = mediator;
     this._publishEndpoint = publishEndpoint;
 }
Beispiel #3
0
 public ResultQuizCommandHandler(ILogger <ResultQuizCommandHandler> logger,
                                 IMediator mediator,
                                 ISendEndpointProvider sendEndpointProvider,
                                 ICheckResultService checkResultService,
                                 IRepository <Quiz> quizRepository,
                                 IMapper mapper)
 {
     _logger               = logger;
     _mediator             = mediator;
     _sendEndpointProvider = sendEndpointProvider;
     _checkResultService   = checkResultService;
     _quizRepository       = quizRepository;
     _mapper               = mapper;
 }
            private FakeCaseJobServer()
            {
                _factory = new FakeHttpClientFactory();
                var serviceCollection = new ServiceCollection();

                serviceCollection.AddCaseApi(callback: opt =>
                {
                    opt.WSHumanTaskAPI = "http://localhost";
                });
                serviceCollection.AddSingleton <IHttpClientFactory>(_factory);
                serviceCollection.AddMassTransitHostedService();
                _serviceProvider = serviceCollection.BuildServiceProvider();
                _casePlanInstanceCommandRepository = _serviceProvider.GetRequiredService <ICasePlanInstanceCommandRepository>();
                _mediator   = _serviceProvider.GetRequiredService <MediatR.IMediator>();
                _busControl = _serviceProvider.GetRequiredService <IBusControl>();
            }
Beispiel #5
0
 public EventBus(IMediator mediator)
 {
     _mediator = mediator;
 }
 public HomeController(IMediator mediator)
 {
     _mediator = mediator;
 }
Beispiel #7
0
 public BehaviourRiskController(IMediator mediator)
 {
     _mediator = mediator;
 }
Beispiel #8
0
 public HivPartnerProfileController(IMediator mediator)
 {
     _mediator = mediator;
 }
Beispiel #9
0
 public ChromeZoneContext(DbContextOptions <ChromeZoneContext> options, MediatR.IMediator mediator) : base(options)
 {
     _mediator = mediator;
 }
Beispiel #10
0
 public MediatRAdapter(MediatR.IMediator mediator)
 {
     this.mediator = mediator ?? throw new ArgumentNullException(nameof(mediator));
 }
Beispiel #11
0
 public Mediator(MediatR.IMediator mediator)
 {
     _mediator = mediator;
 }
Beispiel #12
0
 protected BaseContext(DbContextOptions <T> options, MediatR.IMediator mediator, IIntegrationEventSender sender) : base(options)
 {
     _mediator = mediator;
     _senders  = sender;
 }
Beispiel #13
0
 protected BaseContext(DbContextOptions <T> options, MediatR.IMediator mediator) : base(options)
 {
     _mediator = mediator;
 }