Пример #1
0
        /// <summary>
        ///
        /// </summary>
        public ProcessEngineWrapper(ProcessInstanceConverter processInstanceConverter,
                                    PageableProcessInstanceRepositoryService pageableProcessInstanceService,
                                    TaskConverter taskConverter,
                                    PageableTaskRepositoryService pageableTaskService,
                                    MessageProducerActivitiEventListener listener,
                                    SecurityPoliciesApplicationService securityService,
                                    AuthenticationWrapper authenticationWrapper,
                                    IApplicationEventPublisher eventPublisher,
                                    IProcessEngine processEngine,
                                    HistoricInstanceConverter historicInstanceConverter,
                                    ILoggerFactory loggerFactory)
        {
            this.processEngine                  = processEngine;
            this.processInstanceConverter       = processInstanceConverter;
            this.runtimeService                 = processEngine.RuntimeService;
            this.pageableProcessInstanceService = pageableProcessInstanceService;
            this.taskService         = processEngine.TaskService;
            this.taskConverter       = taskConverter;
            this.pageableTaskService = pageableTaskService;
            this.historyService      = processEngine.HistoryService;
#warning 暂时不处理事件侦听
            //this.runtimeService.addEventListener(listener);
            this.securityService           = securityService;
            this.repositoryService         = processEngine.RepositoryService;
            this.authenticationWrapper     = authenticationWrapper;
            this.eventPublisher            = eventPublisher;
            this.historicInstanceConverter = historicInstanceConverter;
            logger = loggerFactory.CreateLogger <ProcessEngineWrapper>();
        }
 public ForgotPasswordCommandHandler(
     UserManager <ApplicationUser> userManager,
     IApplicationEventPublisher eventPublisher,
     IOptions <IdentityServerUserInteractionConfig> managementOptions,
     IUrlBuilder urlBuilder)
 {
     _userManager        = userManager;
     _eventPublisher     = eventPublisher;
     _interactionOptions = managementOptions.Value;
     _urlBuilder         = urlBuilder;
 }
Пример #3
0
        protected override void RegisterDependencies(IServiceCollection collection)
        {
            base.RegisterDependencies(collection);

            // Mocked external dependencies, the setup should
            // come later according to each scenario
            repository = Substitute.For <IMenuRepository>();
            applicationEventPublisher = Substitute.For <IApplicationEventPublisher>();

            collection.AddTransient(IoC => repository);
            collection.AddTransient(IoC => applicationEventPublisher);
        }
Пример #4
0
 public RegisterUserCommandHandler(
     ILogger <RegisterUserCommandHandler> logger,
     UserManager <ApplicationUser> userManager,
     IUserService <ApplicationUser> userService,
     IOptions <IdentityServerUserInteractionConfig> managementOptions,
     IOptions <IdentityServerConfig> options,
     IApplicationEventPublisher eventPublisher,
     ITokenValidator tokenValidator,
     IIdentityServerInteractionService interactionService,
     IUrlBuilder urlBuilder)
 {
     _logger             = logger;
     _userManager        = userManager;
     _userService        = userService;
     _options            = options.Value;
     _eventPublisher     = eventPublisher;
     _tokenValidator     = tokenValidator;
     _interactionService = interactionService;
     _urlBuilder         = urlBuilder;
     _interactionOptions = managementOptions.Value;
 }
 public UpdateMenuItemCommandHandler(IMenuRepository repository, IApplicationEventPublisher applicationEventPublisher)
     : base(repository, applicationEventPublisher)
 {
 }
 public CreateMenuCommandHandler(IMenuRepository repository, IApplicationEventPublisher applicationEventPublisher)
 {
     this.repository = repository;
     this.applicationEventPublisher = applicationEventPublisher;
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="eventPublisher"></param>
 /// <param name="signalEventDefinition"></param>
 /// <param name="signal"></param>
 public BroadcastSignalEventActivityBehavior(IApplicationEventPublisher eventPublisher, SignalEventDefinition signalEventDefinition, Signal signal) : base(signalEventDefinition, signal)
 {
     this.eventPublisher = eventPublisher;
 }
Пример #8
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="integrationContextManager"></param>
 /// <param name="runtimeBundleProperties"></param>
 /// <param name="eventPublisher"></param>
 public MQServiceTaskBehavior(IIntegrationContextManager integrationContextManager, RuntimeBundleProperties runtimeBundleProperties, IApplicationEventPublisher eventPublisher)
 {
     this.integrationContextManager = integrationContextManager;
     this.runtimeBundleProperties   = runtimeBundleProperties;
     this.eventPublisher            = eventPublisher;
 }
Пример #9
0
        public ApplicationEventPublisher(IApplicationEventPublisher publisher)
        {
            _publisher = publisher;

            Receive <IApplicationEvent>(e => PublishAppEvent(e));
        }
 public CreateCategoryCommandHandler(IMenuRepository repository, IApplicationEventPublisher applicationEventPublisher)
     : base(repository, applicationEventPublisher)
 {
 }