示例#1
0
 protected override Task ExecuteAsync(CancellationToken cancellationToken)
 {
     RunAll(
         () => _dispatchedEventBus.SubscribeAsync <ProjectCreatedMsg>("project-created"),
         () => _dispatchedEventBus.SubscribeAsync <TaskCreatedMsg>("task-created")
         );
     return(Task.CompletedTask);
 }
 private void OnStarted()
 {
     _logger.LogInformation("OnStarted has been called.");
     _eventBus.SubscribeAsync <ProjectCreatedMsg>("project").Wait();
 }