Exemplo n.º 1
0
 internal RemoteAttributeRequestHandler(
     ConfirmingDistributor confirmingDistributor,
     IConfiguration configuration,
     AttributeSetRepository repository)
 {
     _confirmingDistributor = confirmingDistributor;
     _configuration         = configuration;
     _repository            = repository;
 }
Exemplo n.º 2
0
        public AttributesAgentActor(
            Node node,
            IClusterApplication application,
            IOperationalOutboundStream outbound,
            IConfiguration configuration,
            IConfirmationInterest confirmationInterest)
        {
            _node                  = node;
            _configuration         = configuration;
            _confirmationInterest  = confirmationInterest;
            _client                = AttributesClient.With(SelfAs <IAttributesAgent>());
            _confirmingDistributor = new ConfirmingDistributor(application, node, outbound, configuration);
            _repository            = new AttributeSetRepository();
            _remoteRequestHandler  = new RemoteAttributeRequestHandler(_confirmingDistributor, configuration, _repository);

            application.InformAttributesClient(_client);

            Stage.Scheduler.Schedule(SelfAs <IScheduled <object> >(), null, TimeSpan.FromMilliseconds(1000L),
                                     TimeSpan.FromMilliseconds(Properties.Instance.ClusterAttributesRedistributionInterval()));
        }
Exemplo n.º 3
0
 private AttributesClient(IAttributesAgent agent, AttributeSetRepository repository)
 {
     _agent      = agent;
     _repository = repository;
 }