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); }
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); }