Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new <see cref="SubflowProcessor"/>
 /// </summary>
 /// <param name="loggerFactory">The service used to create <see cref="ILogger"/>s</param>
 /// <param name="context">The current <see cref="IWorkflowRuntimeContext"/></param>
 /// <param name="activityProcessorFactory">The service used to create <see cref="IWorkflowActivityProcessor"/>s</param>
 /// <param name="integrationEventBus">The service used to publish and subscribe to integration events</param>
 /// <param name="options">The service used to access the current <see cref="ApplicationOptions"/></param>
 /// <param name="activity">The <see cref="V1WorkflowActivity"/> to process</param>
 /// <param name="state">The <see cref="StateDefinition"/> the <see cref="SubflowReference"/> to process belongs to</param>
 /// <param name="action">The <see cref="ActionDefinition"/> to process</param>
 public SubflowProcessor(ILoggerFactory loggerFactory, IWorkflowRuntimeContext context, IWorkflowActivityProcessorFactory activityProcessorFactory,
                         IIntegrationEventBus integrationEventBus, IOptions <ApplicationOptions> options, V1WorkflowActivity activity, StateDefinition state, ActionDefinition action)
     : base(loggerFactory, context, activityProcessorFactory, options, activity, action)
 {
     this.IntegrationEventBus = integrationEventBus;
     this.State = state;
 }
Ejemplo n.º 2
0
 public CreateAccountCommandHandler(IAccountVerificationService accountVerificationService, IAccountCreatorService accountCreatorService,
                                    IIntegrationEventBus integrationEventBus)
 {
     _accountVerificationService = accountVerificationService;
     _accountCreatorService      = accountCreatorService;
     _integrationEventBus        = integrationEventBus;
 }
 /// <summary>
 /// Initializes a new <see cref="WorkflowActivityProcessor"/>
 /// </summary>
 /// <param name="loggerFactory">The service used to create <see cref="ILogger"/>s</param>
 /// <param name="context">The current <see cref="IWorkflowRuntimeContext"/></param>
 /// <param name="activityProcessorFactory">The service used to create <see cref="IWorkflowActivityProcessor"/>s</param>
 /// <param name="integrationEventBus">The service used to publish and subscribe to integration events</param>
 /// <param name="options">The service used to access the current <see cref="ApplicationOptions"/></param>
 /// <param name="activity">The <see cref="V1WorkflowActivity"/> to process</param>
 /// <param name="eventDefinition">The <see cref="ServerlessWorkflow.Sdk.Models.EventDefinition"/> that defines the <see cref="V1Event"/> to consume</param>
 public ConsumeEventProcessor(ILoggerFactory loggerFactory, IWorkflowRuntimeContext context, IWorkflowActivityProcessorFactory activityProcessorFactory,
                              IIntegrationEventBus integrationEventBus, IOptions <ApplicationOptions> options, V1WorkflowActivity activity, EventDefinition eventDefinition)
     : base(loggerFactory, context, activityProcessorFactory, options, activity)
 {
     this.IntegrationEventBus = integrationEventBus;
     this.EventDefinition     = eventDefinition;
 }
 public ImmediateEventForwarder(
     ILogger logger,
     IIntegrationEventBus integrationEventBus)
 {
     _logger = logger;
     _integrationEventBus = integrationEventBus;
 }
 public ArticleApplicationService(ArticleDomainService articleDomainService, IArticleRepository articleRepository, IArticleQueryService articleQueryService, IIntegrationEventBus integrationEventBus)
 {
     this._articleDomainService = articleDomainService;
     this._articleRepository    = articleRepository;
     this._articleQueryService  = articleQueryService;
     this._integrationEventBus  = integrationEventBus;
 }
Ejemplo n.º 6
0
 public ArticleApplicationService(ArticleDomainService articleDomainService,
                                  IIntegrationEventBus integrationEventBus,
                                  ArticleCategoryDomainService articleCategoryDomainService)
 {
     _articleDomainService         = articleDomainService;
     _integrationEventBus          = integrationEventBus;
     _articleCategoryDomainService = articleCategoryDomainService;
 }
Ejemplo n.º 7
0
 public DeleteAccountCommandHandler(IAccountGetterService accountGetterService, ICommunicationBus communicationBus,
                                    IIntegrationEventBus integrationEventBus, IAccountDataConsistencyService accountDataConsistencyService)
 {
     _accountGetterService          = accountGetterService;
     _communicationBus              = communicationBus;
     _integrationEventBus           = integrationEventBus;
     _accountDataConsistencyService = accountDataConsistencyService;
 }
Ejemplo n.º 8
0
 public AnnouncementPreferencesDeletionCompletedIntegrationEventFailureHandler(ILogger logger, IDomainEventStore domainEventStore,
                                                                               IUserRepository userRepository, IIntegrationEventBus integrationEventBus)
 {
     _logger              = logger;
     _domainEventStore    = domainEventStore;
     _userRepository      = userRepository;
     _integrationEventBus = integrationEventBus;
 }
Ejemplo n.º 9
0
 public WeatherForecastController(IOptionsSnapshot <AccountOptions> accountOptions, IMongoDbRepository <UserBehaviorGroup> userBehaviorGroupRepository, IIntegrationEventBus integrationEventBus, ITestNewService testNewService, IMongoDbRepository <UserBehavior> mongoDbRepository)
 {
     _accountOptions              = accountOptions;
     _testNewService              = testNewService;
     _mongoDbRepository           = mongoDbRepository;
     _integrationEventBus         = integrationEventBus;
     _userBehaviorGroupRepository = userBehaviorGroupRepository;
 }
Ejemplo n.º 10
0
 public AccountDeletedIntegrationEventHandler(IUserRepository userRepository, ILogger logger, IIntegrationEventBus integrationEventBus,
                                              ICommunicationBus communicationBus)
 {
     _userRepository      = userRepository;
     _logger              = logger;
     _integrationEventBus = integrationEventBus;
     _communicationBus    = communicationBus;
 }
Ejemplo n.º 11
0
 public AccountCreatedIntegrationEventHandler(ICommunicationBus communicationBus, IIntegrationEventBus integrationEventBus,
                                              IUserRepository userRepository, ILogger logger)
 {
     _communicationBus    = communicationBus;
     _integrationEventBus = integrationEventBus;
     _userRepository      = userRepository;
     _logger = logger;
 }
Ejemplo n.º 12
0
 public UserCreationCompletedIntegrationEventHandler(IAccountGetterService accountGetterService, IAccountConfirmationRequestService accountConfirmationRequestService,
                                                     IIntegrationEventBus integrationEventBus, ILogger logger)
 {
     _accountGetterService = accountGetterService;
     _accountConfirmationRequestService = accountConfirmationRequestService;
     _integrationEventBus = integrationEventBus;
     _logger = logger;
 }
Ejemplo n.º 13
0
 public UserDeletionCompletedIntegrationEventFailureHandler(ILogger logger, IIntegrationEventBus integrationEventBus,
                                                            IDomainEventStore domainEventStore, IAccountRepository accountRepository)
 {
     _logger = logger;
     _integrationEventBus = integrationEventBus;
     _domainEventStore    = domainEventStore;
     _accountRepository   = accountRepository;
 }
Ejemplo n.º 14
0
 public UserCreationCompletedIntegrationEventFailureHandler(IAccountGetterService accountGetterService,
                                                            IAccountDataConsistencyService accountDataConsistencyService, IIntegrationEventBus integrationEventBus,
                                                            ILogger logger)
 {
     _accountGetterService = accountGetterService;
     _integrationEventBus  = integrationEventBus;
     _logger = logger;
     _accountDataConsistencyService = accountDataConsistencyService;
 }
Ejemplo n.º 15
0
 public DeleteRoomForRentAnnouncementPreferenceCommandHandler(IUserGetterService userGetterService,
                                                              IRoomForRentAnnouncementPreferenceGetterService roomForRentAnnouncementPreferenceGetterService,
                                                              ICommunicationBus communicationBus, IUserRepository userRepository, IIntegrationEventBus integrationEventBus)
 {
     _userGetterService = userGetterService;
     _roomForRentAnnouncementPreferenceGetterService = roomForRentAnnouncementPreferenceGetterService;
     _communicationBus    = communicationBus;
     _userRepository      = userRepository;
     _integrationEventBus = integrationEventBus;
 }
Ejemplo n.º 16
0
 public UpdateUserCommandHandler(IUserGetterService userGetterService, IUserVerificationService userVerificationService,
                                 ICommunicationBus communicationBus, IUserRepository userRepository, IIntegrationEventBus integrationEventBus,
                                 IBlobContainerService blobContainerService)
 {
     _userGetterService       = userGetterService;
     _userVerificationService = userVerificationService;
     _communicationBus        = communicationBus;
     _userRepository          = userRepository;
     _integrationEventBus     = integrationEventBus;
     _blobContainerService    = blobContainerService;
 }
Ejemplo n.º 17
0
 public ConsumerRegister(ILogger <ConsumerRegister> logger, IServiceScopeFactory serviceScopeFactory,
                         IConsumerClientFactory consumerClientFactory, IIntegrationEventBus integrationEventBus,
                         IConsumerErrHandler consumerErrHandler, IOptions <IntegrationEventBusOptions> options)
 {
     _logger = logger;
     _serviceScopeFactory   = serviceScopeFactory;
     _consumerClientFactory = consumerClientFactory;
     _integrationEventBus   = integrationEventBus;
     _options            = options.Value;
     _consumerErrHandler = consumerErrHandler;
     _cts = new CancellationTokenSource();
 }
Ejemplo n.º 18
0
 public ExternalLoginInteractor(IAuthorizationService authorizationService, IAccountProviderService accountProviderService,
                                IIntegrationEventBus integrationEventBus, IAuthenticationService authenticationService,
                                IAccountClaimsCreatorService accountClaimsCreatorService, ISignInService signInService, ISignOutService signOutService)
 {
     _authorizationService        = authorizationService;
     _accountProviderService      = accountProviderService;
     _integrationEventBus         = integrationEventBus;
     _authenticationService       = authenticationService;
     _accountClaimsCreatorService = accountClaimsCreatorService;
     _signInService  = signInService;
     _signOutService = signOutService;
 }
Ejemplo n.º 19
0
 public CreateRoomForRentAnnouncementPreferenceCommandHandler(IUserGetterService userGetterService, ICityVerificationService cityVerificationService,
                                                              IUserVerificationService userVerificationService, IRoomForRentAnnouncementPreferenceVerificationService roomForRentAnnouncementPreferenceVerificationService,
                                                              IMapper mapper, ICommunicationBus communicationBus, IUserRepository userRepository, IIntegrationEventBus integrationEventBus)
 {
     _userGetterService       = userGetterService;
     _cityVerificationService = cityVerificationService;
     _userVerificationService = userVerificationService;
     _roomForRentAnnouncementPreferenceVerificationService = roomForRentAnnouncementPreferenceVerificationService;
     _mapper              = mapper;
     _communicationBus    = communicationBus;
     _userRepository      = userRepository;
     _integrationEventBus = integrationEventBus;
 }
Ejemplo n.º 20
0
 public UpdateFlatForRentAnnouncementPreferenceCommandHandler(IUserGetterService userGetterService, ICityVerificationService cityVerificationService,
                                                              IFlatForRentAnnouncementPreferenceGetterService flatForRentAnnouncementPreferenceGetterService, IUserRepository userRepository,
                                                              IFlatForRentAnnouncementPreferenceVerificationService flatForRentAnnouncementPreferenceVerificationService, ICommunicationBus communicationBus,
                                                              IIntegrationEventBus integrationEventBus)
 {
     _userGetterService       = userGetterService;
     _cityVerificationService = cityVerificationService;
     _flatForRentAnnouncementPreferenceGetterService       = flatForRentAnnouncementPreferenceGetterService;
     _flatForRentAnnouncementPreferenceVerificationService = flatForRentAnnouncementPreferenceVerificationService;
     _communicationBus    = communicationBus;
     _userRepository      = userRepository;
     _integrationEventBus = integrationEventBus;
 }
Ejemplo n.º 21
0
        public ArticleQueryService(IIntegrationEventBus integrationEventBus, IConfig config,
                                   ArticleRepository articleRepository)
        {
            _integrationEventBus = integrationEventBus;
            _integrationEventBus.SubscribeEvent <NewArticleCreatedEvent>(Hanlde);
            _integrationEventBus.SubscribeEvent <ArticleUpdatedEvent>(Hanlde);
            _config            = config;
            _articleRepository = articleRepository;

            _articleDetails = _articleRepository.GetAllEntity().Select(entity =>
                                                                       new ArticleEventData()
            {
                Id         = entity.Id,
                Title      = entity.Title,
                Content    = entity.Content,
                CategoryId = entity.CategoryId,
                State      = (ArticleDetailState)entity.State,
                Tags       = entity.Tags,
                CreateDate = entity.CreateDate
            }).ToList();
        }
Ejemplo n.º 22
0
 public IntegrationEventService(T context, IIntegrationEventBus eventBus)
 {
     _context  = context;
     _eventBus = eventBus;
 }
 /// <summary>
 /// Initializes a new <see cref="V1RuntimemetricsDomainEventHandler"/>
 /// </summary>
 /// <param name="loggerFactory">The service used to create <see cref="ILogger"/>s</param>
 /// <param name="mapper">The service used to map objects</param>
 /// <param name="mediator">The service used to mediate calls</param>
 /// <param name="integrationEventBus">The service used to publish <see cref="IIntegrationEvent"/>s</param>
 /// <param name="applicationOptions">The current <see cref="SynapseApplicationOptions"/></param>
 /// <param name="operationalReports">The <see cref="IRepository"/> used to manage <see cref="V1OperationalReport"/>s</param>
 public V1RuntimemetricsDomainEventHandler(ILoggerFactory loggerFactory, IMapper mapper, IMediator mediator, IIntegrationEventBus integrationEventBus,
                                           IOptions <SynapseApplicationOptions> applicationOptions, IRepository <V1OperationalReport> operationalReports)
     : base(loggerFactory, mapper, mediator, integrationEventBus, applicationOptions)
 {
     this.OperationalReports = operationalReports;
 }
Ejemplo n.º 24
0
 public PasswordResetTokenRequestService(IIntegrationEventBus integrationEventBus, IOptions <RivaWebApplicationSetting> options)
 {
     _integrationEventBus = integrationEventBus;
     _resetPasswordUrl    = options.Value.RivaWebResetPasswordUrl;
 }
Ejemplo n.º 25
0
 public AnnouncementPreferencesDeletionCompletedIntegrationEventHandler(IIntegrationEventBus integrationEventBus)
 {
     _integrationEventBus = integrationEventBus;
 }
Ejemplo n.º 26
0
 /// <inheritdoc/>
 public V1CorrelationDomainEventHandler(ILoggerFactory loggerFactory, IMapper mapper, IMediator mediator, IIntegrationEventBus integrationEventBus,
                                        IOptions <SynapseApplicationOptions> synapseOptions, IRepository <V1Correlation> aggregates, IRepository <Integration.Models.V1Correlation> projections)
     : base(loggerFactory, mapper, mediator, integrationEventBus, synapseOptions, aggregates, projections)
 {
 }
 public IntegrationEventsTask(IIntegrationEventBus eventBus)
 {
     _eventBus = eventBus;
 }
Ejemplo n.º 28
0
 public AnnouncementPreferenceCreationCompletedIntegrationEventFailureHandler(ILogger logger, IUserRevertService userRevertService, IIntegrationEventBus integrationEventBus)
 {
     _logger              = logger;
     _userRevertService   = userRevertService;
     _integrationEventBus = integrationEventBus;
 }
Ejemplo n.º 29
0
 public UserDeletionCompletedIntegrationEventHandler(IIntegrationEventBus integrationEventBus)
 {
     _integrationEventBus = integrationEventBus;
 }
 public IntegrationEventsTask(IServiceProvider serviceProvider, IIntegrationEventBus eventBus)
     : base(serviceProvider)
 {
     _eventBus = eventBus;
 }