Exemplo n.º 1
0
 public override void InformAttributesClient(IAttributesProtocol client)
 {
     Logger.Debug("APP: Attributes Client received.");
     _client = client;
     if (_localNode.Id.Value == 1)
     {
         _client.Add("fake.set", "fake.attribute.name1", "value1");
         _client.Add("fake.set", "fake.attribute.name2", "value2");
     }
 }
Exemplo n.º 2
0
 public void Use(IAttributesProtocol client)
 {
     if (!actor.IsStopped)
     {
         Action <IDirectoryService> consumer = x => x.Use(client);
         if (mailbox.IsPreallocated)
         {
             mailbox.Send(actor, consumer, null, UseRepresentation3);
         }
         else
         {
             mailbox.Send(new LocalMessage <IDirectoryService>(actor, consumer, UseRepresentation3));
         }
     }
     else
     {
         actor.DeadLetters.FailedDelivery(new DeadLetter(actor, UseRepresentation3));
     }
 }
Exemplo n.º 3
0
 public void InformAttributesClient(IAttributesProtocol client)
 {
     if (!actor.IsStopped)
     {
         Action <IClusterApplication> consumer = __ => __.InformAttributesClient(client);
         if (mailbox.IsPreallocated)
         {
             mailbox.Send(actor, consumer, null, InformAttributesClientRepresentation12);
         }
         else
         {
             mailbox.Send(new LocalMessage <IClusterApplication>(actor, consumer,
                                                                 InformAttributesClientRepresentation12));
         }
     }
     else
     {
         actor.DeadLetters.FailedDelivery(
             new DeadLetter(actor, InformAttributesClientRepresentation12));
     }
 }
 public void InformAttributesClient(IAttributesProtocol client)
 {
     AttributesClient = client;
     InformAttributesClientCheck.IncrementAndGet();
 }
 public void InformAttributesClient(IAttributesProtocol client) =>
 Broadcast(app => app.InformAttributesClient(client));
 public abstract void InformAttributesClient(IAttributesProtocol client);
 public void Use(IAttributesProtocol client) => _attributesClient = client;
Exemplo n.º 8
0
        public override void InformAttributesClient(IAttributesProtocol client)
        {
            Logger.Debug("DIRECTORY: Attributes Client received.");

            _directoryService.Use(client);
        }