예제 #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 ActorHostFactory(ISecurityProvider securityProvider,
                         ILocalSocket <IMessage> localRouterSocket,
                         ILocalSendingSocket <InternalRouteRegistration> internalRegistrationsSender,
                         ILocalSocketFactory localSocketFactory,
                         ILogger logger)
 {
     this.securityProvider            = securityProvider;
     this.localRouterSocket           = localRouterSocket;
     this.internalRegistrationsSender = internalRegistrationsSender;
     this.localSocketFactory          = localSocketFactory;
     this.logger = logger;
 }
예제 #3
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);
 }
예제 #4
0
 public ClusterHealthMonitor(ISocketFactory socketFactory,
                             ILocalSocketFactory localSocketFactory,
                             ISecurityProvider securityProvider,
                             ILocalSendingSocket <IMessage> routerLocalSocket,
                             IConnectedPeerRegistry connectedPeerRegistry,
                             ClusterHealthMonitorConfiguration config,
                             ILogger logger)
 {
     deadPeersCheckInterval     = TimeSpan.FromDays(1);
     this.socketFactory         = socketFactory;
     this.securityProvider      = securityProvider;
     multiplexingSocket         = localSocketFactory.Create <IMessage>();
     this.config                = config;
     this.routerLocalSocket     = routerLocalSocket;
     this.connectedPeerRegistry = connectedPeerRegistry;
     this.logger                = logger;
 }
예제 #5
0
 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>();
 }
예제 #6
0
 public MessageHub(ICallbackHandlerStack callbackHandlers,
                   ILocalSocket <IMessage> localRouterSocket,
                   ILocalSendingSocket <InternalRouteRegistration> internalRegistrationsSender,
                   ILocalSocketFactory localSocketFactory,
                   IScaleOutConfigurationProvider scaleOutConfigurationProvider,
                   ISecurityProvider securityProvider,
                   ILogger logger,
                   bool keepRegistrationLocal = false)
 {
     this.logger                        = logger;
     this.localRouterSocket             = localRouterSocket;
     this.internalRegistrationsSender   = internalRegistrationsSender;
     this.scaleOutConfigurationProvider = scaleOutConfigurationProvider;
     this.securityProvider              = securityProvider;
     this.keepRegistrationLocal         = keepRegistrationLocal;
     this.callbackHandlers              = callbackHandlers;
     registrationsQueue                 = new BlockingCollection <CallbackRegistration>(new ConcurrentQueue <CallbackRegistration>());
     receivingSocket                    = localSocketFactory.Create <IMessage>();
     ReceiverIdentifier                 = ReceiverIdentities.CreateForMessageHub();
 }