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 ActorHost(IActorHandlerMap actorHandlerMap, IAsyncQueue <AsyncMessageContext> asyncQueue, IAsyncQueue <ActorRegistration> actorRegistrationsQueue, ISecurityProvider securityProvider, ILocalSocket <IMessage> localRouterSocket, ILocalSendingSocket <InternalRouteRegistration> internalRegistrationsSender, ILocalSocketFactory localSocketFactory, ILogger logger) { this.logger = logger; this.actorHandlerMap = actorHandlerMap; this.securityProvider = securityProvider; this.localRouterSocket = localRouterSocket; this.internalRegistrationsSender = internalRegistrationsSender; this.asyncQueue = asyncQueue; this.actorRegistrationsQueue = actorRegistrationsQueue; receivingSocket = localSocketFactory.Create <IMessage>(); }
public ActorHost(ISocketFactory socketFactory, IActorHandlerMap actorHandlerMap, IAsyncQueue<AsyncMessageContext> asyncQueue, IAsyncQueue<IActor> actorRegistrationsQueue, RouterConfiguration routerConfiguration, IMessageTracer messageTracer, ILogger logger) { this.logger = logger; this.messageTracer = messageTracer; this.actorHandlerMap = actorHandlerMap; localSocketIdentityPromise = new TaskCompletionSource<byte[]>(); this.socketFactory = socketFactory; this.routerConfiguration = routerConfiguration; this.asyncQueue = asyncQueue; this.actorRegistrationsQueue = actorRegistrationsQueue; cancellationTokenSource = new CancellationTokenSource(); }