예제 #1
0
 public InventoryController(
     HPlusSportsDbContext context,
     MediatR.IMediator mediator)
 {
     _context  = context;
     _mediator = mediator;
 }
예제 #2
0
 public ApplicationEventBus(
     MediatR.IMediator mediator,
     IPublishEndpoint publishEndpoint)
 {
     _mediator             = mediator;
     this._publishEndpoint = publishEndpoint;
 }
예제 #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>();
            }
예제 #5
0
 public EventBus(IMediator mediator)
 {
     _mediator = mediator;
 }
예제 #6
0
 public HomeController(IMediator mediator)
 {
     _mediator = mediator;
 }
예제 #7
0
 public BehaviourRiskController(IMediator mediator)
 {
     _mediator = mediator;
 }
예제 #8
0
 public HivPartnerProfileController(IMediator mediator)
 {
     _mediator = mediator;
 }
예제 #9
0
 public ChromeZoneContext(DbContextOptions <ChromeZoneContext> options, MediatR.IMediator mediator) : base(options)
 {
     _mediator = mediator;
 }
예제 #10
0
 public MediatRAdapter(MediatR.IMediator mediator)
 {
     this.mediator = mediator ?? throw new ArgumentNullException(nameof(mediator));
 }
예제 #11
0
 public Mediator(MediatR.IMediator mediator)
 {
     _mediator = mediator;
 }
예제 #12
0
 protected BaseContext(DbContextOptions <T> options, MediatR.IMediator mediator, IIntegrationEventSender sender) : base(options)
 {
     _mediator = mediator;
     _senders  = sender;
 }
예제 #13
0
 protected BaseContext(DbContextOptions <T> options, MediatR.IMediator mediator) : base(options)
 {
     _mediator = mediator;
 }