예제 #1
0
 public ActorHost(IInternalRegistrationService internalRegistrationService,
                  IActorHandlerMap actorHandlerMap,
                  ILocalSocketFactory localSocketFactory,
                  IMessageRouter messageRouter,
                  ISecurityProvider securityProvider)
 {
     this.internalRegistrationService = internalRegistrationService;
     this.actorHandlerMap             = actorHandlerMap;
     this.messageRouter    = messageRouter;
     this.securityProvider = securityProvider;
     socket = localSocketFactory.Create(DispatchMessage);
 }
예제 #2
0
 public MessageHub(IInternalRegistrationService internalRegistrationService,
                   ILocalSocketFactory localSocketFactory,
                   IMessageRouter messageRouter,
                   ISecurityProvider securityProvider,
                   ICallbackHandlerStack callbackHandlers)
 {
     ReceiverIdentifier = ReceiverIdentifier.Create(ReceiverKind.MessageHub);
     this.internalRegistrationService = internalRegistrationService;
     this.messageRouter    = messageRouter;
     this.securityProvider = securityProvider;
     this.callbackHandlers = callbackHandlers;
     socket = localSocketFactory.Create(DispatchMessage);
 }