Esempio n. 1
0
 public void StartGateway(ClientObserverRegistrar clientRegistrar)
 {
     if (Gateway != null)
     {
         Gateway.Start(clientRegistrar);
     }
 }
Esempio n. 2
0
 public void StartGateway()
 {
     if (Gateway != null)
     {
         Gateway.Start();
     }
 }
Esempio n. 3
0
        public MessageCenter(
            ILocalSiloDetails siloDetails,
            MessageFactory messageFactory,
            Catalog catalog,
            Factory <MessageCenter, Gateway> gatewayFactory,
            ILogger <MessageCenter> logger,
            ISiloStatusOracle siloStatusOracle,
            ConnectionManager senderManager,
            RuntimeMessagingTrace messagingTrace,
            IOptions <SiloMessagingOptions> messagingOptions,
            PlacementService placementService,
            ILocalGrainDirectory localGrainDirectory,
            ActivationDirectory activationDirectory)
        {
            this.catalog             = catalog;
            this.messagingOptions    = messagingOptions.Value;
            this.siloStatusOracle    = siloStatusOracle;
            this.connectionManager   = senderManager;
            this.messagingTrace      = messagingTrace;
            this.placementService    = placementService;
            this.localGrainDirectory = localGrainDirectory;
            this.activationDirectory = activationDirectory;
            this.log            = logger;
            this.messageFactory = messageFactory;
            this._siloAddress   = siloDetails.SiloAddress;

            if (siloDetails.GatewayAddress != null)
            {
                Gateway = gatewayFactory(this);
                Gateway.Start();
            }
        }
Esempio n. 4
0
        public MessageCenter(
            ILocalSiloDetails siloDetails,
            MessageFactory messageFactory,
            Factory <MessageCenter, Gateway> gatewayFactory,
            ILogger <MessageCenter> logger,
            ISiloStatusOracle siloStatusOracle,
            ConnectionManager senderManager,
            MessagingTrace messagingTrace)
        {
            this.siloStatusOracle  = siloStatusOracle;
            this.connectionManager = senderManager;
            this.messagingTrace    = messagingTrace;
            this.log            = logger;
            this.messageFactory = messageFactory;
            this._siloAddress   = siloDetails.SiloAddress;

            if (siloDetails.GatewayAddress != null)
            {
                Gateway = gatewayFactory(this);
                Gateway.Start();
            }
        }