コード例 #1
0
 /// <summary>
 /// Instantiates a new instance of <see cref="BusActor"/>.
 /// </summary>
 public BusActor(IAkkaCommandPublisher <TAuthenticationToken> commandHandlerResolver, ICorrelationIdHelper correlationIdHelper, IAuthenticationTokenHelper <TAuthenticationToken> authenticationTokenHelper)
 {
     CommandHandlerResolver    = commandHandlerResolver;
     CorrelationIdHelper       = correlationIdHelper;
     AuthenticationTokenHelper = authenticationTokenHelper;
     Receive <ICommand <TAuthenticationToken> >(command => ExecuteReceive(command));
 }
 /// <summary>
 /// Instantiates a new instance of <see cref="Actor"/>.
 /// </summary>
 public Actor(ILogger logger, ICorrelationIdHelper correlationIdHelper, IAuthenticationTokenHelper <Guid> authenticationTokenHelper, IAkkaCommandPublisher <Guid> commandBus)
     : base(logger, correlationIdHelper, authenticationTokenHelper)
 {
     CommandBus = commandBus;
     Receive <HelloWorldRepliedTo>(@event => Execute(Handle, @event));
 }
コード例 #3
0
 /// <summary>
 /// Instantiates a new instance of <see cref="HelloWorldSaidEventHandler"/>.
 /// </summary>
 public HelloWorldSaidEventHandler(IAkkaCommandPublisher <Guid> commandBus)
 {
     CommandBus = commandBus;
 }
コード例 #4
0
 /// <summary>
 /// Instantiates a new instance of <see cref="ConversationEndedEventHandler"/>.
 /// </summary>
 public ConversationEndedEventHandler(IAkkaCommandPublisher <Guid> commandBus)
 {
     CommandBus = commandBus;
 }