public PipelineStepService( ILogger <IPipelineStepService> logger, MediatR.IMediator mediator, IPipelineStepRepository pipelineStepRepository, IApiPipelineStepServerRequestModelValidator pipelineStepModelValidator, IDALPipelineStepMapper dalPipelineStepMapper, IDALHandlerPipelineStepMapper dalHandlerPipelineStepMapper, IDALOtherTransportMapper dalOtherTransportMapper, IDALPipelineStepDestinationMapper dalPipelineStepDestinationMapper, IDALPipelineStepNoteMapper dalPipelineStepNoteMapper, IDALPipelineStepStepRequirementMapper dalPipelineStepStepRequirementMapper) : base() { this.PipelineStepRepository = pipelineStepRepository; this.PipelineStepModelValidator = pipelineStepModelValidator; this.DalPipelineStepMapper = dalPipelineStepMapper; this.DalHandlerPipelineStepMapper = dalHandlerPipelineStepMapper; this.DalOtherTransportMapper = dalOtherTransportMapper; this.DalPipelineStepDestinationMapper = dalPipelineStepDestinationMapper; this.DalPipelineStepNoteMapper = dalPipelineStepNoteMapper; this.DalPipelineStepStepRequirementMapper = dalPipelineStepStepRequirementMapper; this.logger = logger; this.mediator = mediator; }
public OrderController(ILogger <OrderController> logger, MediatR.IMediator mediator, IRequestClient <SubmitOrder> submitOrderRequestClient) { _logger = logger; _submitOrderRequestClient = submitOrderRequestClient; //MediatR _mediator = mediator; }
public PostService( ILogger <IPostService> logger, MediatR.IMediator mediator, IPostRepository postRepository, IApiPostServerRequestModelValidator postModelValidator, IDALPostMapper dalPostMapper, IDALCommentMapper dalCommentMapper, IDALTagMapper dalTagMapper, IDALVoteMapper dalVoteMapper, IDALPostHistoryMapper dalPostHistoryMapper, IDALPostLinkMapper dalPostLinkMapper) : base() { this.PostRepository = postRepository; this.PostModelValidator = postModelValidator; this.DalPostMapper = dalPostMapper; this.DalCommentMapper = dalCommentMapper; this.DalTagMapper = dalTagMapper; this.DalVoteMapper = dalVoteMapper; this.DalPostHistoryMapper = dalPostHistoryMapper; this.DalPostLinkMapper = dalPostLinkMapper; this.logger = logger; this.mediator = mediator; }
public UserService( ILogger <IUserService> logger, MediatR.IMediator mediator, IUserRepository userRepository, IApiUserServerRequestModelValidator userModelValidator, IDALUserMapper dalUserMapper, IDALBadgeMapper dalBadgeMapper, IDALCommentMapper dalCommentMapper, IDALPostMapper dalPostMapper, IDALVoteMapper dalVoteMapper, IDALPostHistoryMapper dalPostHistoryMapper) : base() { this.UserRepository = userRepository; this.UserModelValidator = userModelValidator; this.DalUserMapper = dalUserMapper; this.DalBadgeMapper = dalBadgeMapper; this.DalCommentMapper = dalCommentMapper; this.DalPostMapper = dalPostMapper; this.DalVoteMapper = dalVoteMapper; this.DalPostHistoryMapper = dalPostHistoryMapper; this.logger = logger; this.mediator = mediator; }
public UserService( ILogger <IUserService> logger, MediatR.IMediator mediator, IUserRepository userRepository, IApiUserServerRequestModelValidator userModelValidator, IDALUserMapper dalUserMapper, IDALDirectTweetMapper dalDirectTweetMapper, IDALFollowerMapper dalFollowerMapper, IDALMessageMapper dalMessageMapper, IDALMessengerMapper dalMessengerMapper, IDALQuoteTweetMapper dalQuoteTweetMapper, IDALReplyMapper dalReplyMapper, IDALRetweetMapper dalRetweetMapper, IDALTweetMapper dalTweetMapper) : base() { this.UserRepository = userRepository; this.UserModelValidator = userModelValidator; this.DalUserMapper = dalUserMapper; this.DalDirectTweetMapper = dalDirectTweetMapper; this.DalFollowerMapper = dalFollowerMapper; this.DalMessageMapper = dalMessageMapper; this.DalMessengerMapper = dalMessengerMapper; this.DalQuoteTweetMapper = dalQuoteTweetMapper; this.DalReplyMapper = dalReplyMapper; this.DalRetweetMapper = dalRetweetMapper; this.DalTweetMapper = dalTweetMapper; this.logger = logger; this.mediator = mediator; }
public LocalSerialHostService(AppState appState, ILogger <LocalSerialHostService> logger, MediatR.IMediator mediator) { _logger = logger; _appState = appState; _mediator = mediator; switch (appState.Config.LightSettings.LocalSerialHost.LocalSerialHostMainSetup.LineEnding) { case "CR": _lineEnding = "\r"; break; case "LF": _lineEnding = "\n"; break; case "CRLF": _lineEnding = "\r\n"; break; default: _logger.LogDebug("Line endings not set or empty string"); _lineEnding = ""; break; } if (!string.IsNullOrEmpty(appState.Config.LightSettings.LocalSerialHost.LocalSerialHostMainSetup.Port)) { SetupSerialPort(appState.Config.LightSettings.LocalSerialHost.LocalSerialHostMainSetup.Port); } }
public UserCheckoutAcceptedConsumer( ILogger <UserCheckoutAcceptedConsumer> logger, IMediator mediator) { _logger = logger; _mediator = mediator; }
public async Task <IActionResult> Updates( [FromServices] MediatR.IMediator mediator) { var model = new DashboardUpdates(HttpContext); await mediator.Publish(model); return(Content(model.ToString(), "application/json")); }
public LightController(MediatR.IMediator mediator, IOptionsMonitor <BaseConfig> optionsAccessor, AppState appState, ILogger <LightController> logger) { Config = optionsAccessor.CurrentValue; _mediator = mediator; _appState = appState; _logger = logger; }
public RabbitMQEventBusSimple (MediatR.IMediator mediator) : base() { Mediator = mediator; EventTypes = new System.Collections.Generic.List <System.Type>(); EventHandlerTypes = new System.Collections.Generic.Dictionary <string, System.Collections.Generic.List <System.Type> >(); }
public DownlinkController( IConfiguration config, IHostingEnvironment env, MediatR.IMediator mediator, IResponseHandler handler, ILogger <DownlinkController> logger) : base(mediator) { Configuration = config; Handler = handler; _logger = logger; _environment = env; }
public AlexaController(IOptionsMonitor <BaseConfig> optionsAccessor, ILogger <AlexaController> logger, AppState appState, IServiceScopeFactory _scopeFactory) { Config = optionsAccessor.CurrentValue; _appState = appState; var _scope = _scopeFactory.CreateScope(); var ServiceProvider = _scope.ServiceProvider; _mediator = ServiceProvider.GetService <MediatR.IMediator>(); _logger = logger; }
public CustomApiService(AppState appState, ILogger <CustomApiService> logger, MediatR.IMediator mediator) { _logger = logger; _appState = appState; _mediator = mediator; _client = new HttpClient { Timeout = TimeSpan.FromSeconds(_appState.Config.LightSettings.CustomApi.CustomApiTimeout > 0 ? _appState.Config.LightSettings.CustomApi.CustomApiTimeout : 20) }; }
public CustomApiService(IOptionsMonitor <BaseConfig> optionsAccessor, ILogger <CustomApiService> logger, MediatR.IMediator mediator) { _logger = logger; _options = optionsAccessor.CurrentValue; _mediator = mediator; _client = new HttpClient { Timeout = TimeSpan.FromSeconds(optionsAccessor.CurrentValue.LightSettings.CustomApi.CustomApiTimeout > 0 ? optionsAccessor.CurrentValue.LightSettings.CustomApi.CustomApiTimeout : 20) }; }
public Worker(ILogger <Worker> logger, IOptionsMonitor <BaseConfig> optionsAccessor, AppState appState, UserAuthService userAuthService, MediatR.IMediator mediator) { _mediator = mediator; _userAuthService = userAuthService; _logger = logger; _appState = appState; _appState.Config = optionsAccessor.CurrentValue; _graphClient = new GraphServiceClient(userAuthService); }
public UsersAppService( IUsersRepository usersRepository, IMapper mapper, IMediatorHandler bus, MediatR.IMediator mediator, IEventStoreRepository eventStoreRepository ) { _usersRepository = usersRepository; _mapper = mapper; Bus = bus; _mediator = mediator; _eventStoreRepository = eventStoreRepository; }
public MainWindow(IGraphService graphService, IWorkingHoursService workingHoursService, MediatR.IMediator mediator, IOptionsMonitor <BaseConfig> optionsAccessor, LIFXOAuthHelper lifxOAuthHelper, DiagnosticsClient diagClient, ILogger <MainWindow> logger, ISettingsService settingsService) { _logger = logger; InitializeComponent(); System.Windows.Application.Current.SessionEnding += new SessionEndingCancelEventHandler(Current_SessionEnding); LoadAboutMe(); _workingHoursService = workingHoursService; _graphservice = graphService; logs.LogFilePath = App.StaticConfig["Serilog:WriteTo:1:Args:Path"]; _mediator = mediator; _options = optionsAccessor != null ? optionsAccessor.CurrentValue : throw new NullReferenceException("Options Accessor is null"); _lIFXOAuthHelper = lifxOAuthHelper; _diagClient = diagClient; _settingsService = settingsService; LoadSettings().ContinueWith( t => { if (t.IsFaulted) { } this.Dispatcher.Invoke(() => { LoadApp(); var tbContext = landingPage.notificationIcon.DataContext; DataContext = Config; landingPage.notificationIcon.DataContext = tbContext; if (Config.StartMinimized) { this.Hide(); } }); }, TaskScheduler.Current); }
public VenueService( ILogger <IVenueService> logger, MediatR.IMediator mediator, IVenueRepository venueRepository, IApiVenueServerRequestModelValidator venueModelValidator, IDALVenueMapper dalVenueMapper) : base() { this.VenueRepository = venueRepository; this.VenueModelValidator = venueModelValidator; this.DalVenueMapper = dalVenueMapper; this.logger = logger; this.mediator = mediator; }
public PostLinkService( ILogger <IPostLinkService> logger, MediatR.IMediator mediator, IPostLinkRepository postLinkRepository, IApiPostLinkServerRequestModelValidator postLinkModelValidator, IDALPostLinkMapper dalPostLinkMapper) : base() { this.PostLinkRepository = postLinkRepository; this.PostLinkModelValidator = postLinkModelValidator; this.DalPostLinkMapper = dalPostLinkMapper; this.logger = logger; this.mediator = mediator; }
public ColumnSameAsFKTableService( ILogger <IColumnSameAsFKTableService> logger, MediatR.IMediator mediator, IColumnSameAsFKTableRepository columnSameAsFKTableRepository, IApiColumnSameAsFKTableServerRequestModelValidator columnSameAsFKTableModelValidator, IDALColumnSameAsFKTableMapper dalColumnSameAsFKTableMapper) : base() { this.ColumnSameAsFKTableRepository = columnSameAsFKTableRepository; this.ColumnSameAsFKTableModelValidator = columnSameAsFKTableModelValidator; this.DalColumnSameAsFKTableMapper = dalColumnSameAsFKTableMapper; this.logger = logger; this.mediator = mediator; }
public SubscriptionService( ILogger <ISubscriptionService> logger, MediatR.IMediator mediator, ISubscriptionRepository subscriptionRepository, IApiSubscriptionServerRequestModelValidator subscriptionModelValidator, IDALSubscriptionMapper dalSubscriptionMapper) : base() { this.SubscriptionRepository = subscriptionRepository; this.SubscriptionModelValidator = subscriptionModelValidator; this.DalSubscriptionMapper = dalSubscriptionMapper; this.logger = logger; this.mediator = mediator; }
public LinkLogService( ILogger <ILinkLogService> logger, MediatR.IMediator mediator, ILinkLogRepository linkLogRepository, IApiLinkLogServerRequestModelValidator linkLogModelValidator, IDALLinkLogMapper dalLinkLogMapper) : base() { this.LinkLogRepository = linkLogRepository; this.LinkLogModelValidator = linkLogModelValidator; this.DalLinkLogMapper = dalLinkLogMapper; this.logger = logger; this.mediator = mediator; }
public SelfReferenceService( ILogger <ISelfReferenceService> logger, MediatR.IMediator mediator, ISelfReferenceRepository selfReferenceRepository, IApiSelfReferenceServerRequestModelValidator selfReferenceModelValidator, IDALSelfReferenceMapper dalSelfReferenceMapper) : base() { this.SelfReferenceRepository = selfReferenceRepository; this.SelfReferenceModelValidator = selfReferenceModelValidator; this.DalSelfReferenceMapper = dalSelfReferenceMapper; this.logger = logger; this.mediator = mediator; }
public PipelineService( ILogger <IPipelineService> logger, MediatR.IMediator mediator, IPipelineRepository pipelineRepository, IApiPipelineServerRequestModelValidator pipelineModelValidator, IDALPipelineMapper dalPipelineMapper) : base() { this.PipelineRepository = pipelineRepository; this.PipelineModelValidator = pipelineModelValidator; this.DalPipelineMapper = dalPipelineMapper; this.logger = logger; this.mediator = mediator; }
public FollowingService( ILogger <IFollowingService> logger, MediatR.IMediator mediator, IFollowingRepository followingRepository, IApiFollowingServerRequestModelValidator followingModelValidator, IDALFollowingMapper dalFollowingMapper) : base() { this.FollowingRepository = followingRepository; this.FollowingModelValidator = followingModelValidator; this.DalFollowingMapper = dalFollowingMapper; this.logger = logger; this.mediator = mediator; }
public CountryRequirementService( ILogger <ICountryRequirementService> logger, MediatR.IMediator mediator, ICountryRequirementRepository countryRequirementRepository, IApiCountryRequirementServerRequestModelValidator countryRequirementModelValidator, IDALCountryRequirementMapper dalCountryRequirementMapper) : base() { this.CountryRequirementRepository = countryRequirementRepository; this.CountryRequirementModelValidator = countryRequirementModelValidator; this.DalCountryRequirementMapper = dalCountryRequirementMapper; this.logger = logger; this.mediator = mediator; }
public AdminService( ILogger <IAdminService> logger, MediatR.IMediator mediator, IAdminRepository adminRepository, IApiAdminServerRequestModelValidator adminModelValidator, IDALAdminMapper dalAdminMapper) : base() { this.AdminRepository = adminRepository; this.AdminModelValidator = adminModelValidator; this.DalAdminMapper = dalAdminMapper; this.logger = logger; this.mediator = mediator; }
public CallPersonService( ILogger <ICallPersonService> logger, MediatR.IMediator mediator, ICallPersonRepository callPersonRepository, IApiCallPersonServerRequestModelValidator callPersonModelValidator, IDALCallPersonMapper dalCallPersonMapper) : base() { this.CallPersonRepository = callPersonRepository; this.CallPersonModelValidator = callPersonModelValidator; this.DalCallPersonMapper = dalCallPersonMapper; this.logger = logger; this.mediator = mediator; }
public VPersonService( ILogger <IVPersonService> logger, MediatR.IMediator mediator, IVPersonRepository vPersonRepository, IApiVPersonServerRequestModelValidator vPersonModelValidator, IDALVPersonMapper dalVPersonMapper) : base() { this.VPersonRepository = vPersonRepository; this.VPersonModelValidator = vPersonModelValidator; this.DalVPersonMapper = dalVPersonMapper; this.logger = logger; this.mediator = mediator; }
public AirlineService( ILogger <IAirlineService> logger, MediatR.IMediator mediator, IAirlineRepository airlineRepository, IApiAirlineServerRequestModelValidator airlineModelValidator, IDALAirlineMapper dalAirlineMapper) : base() { this.AirlineRepository = airlineRepository; this.AirlineModelValidator = airlineModelValidator; this.DalAirlineMapper = dalAirlineMapper; this.logger = logger; this.mediator = mediator; }