Ejemplo n.º 1
0
        public void Observe(string connectionId, Common.Dto.Identity registrar, Common.Dto.Identity entity, Common.Dto.Identity source, Common.Dto.Identity observable)
        {
            string registrationKey = Registration.Key.For(connectionId, registrar, entity);

            Registration.IInstance registration;

            if (_registrations.TryGetValue(registrationKey, out registration))
            {
                _messagingEndpoint.Observe(entity.AsComponent(), source.AsComponent(), observable.AsComponent());
            }
        }
Ejemplo n.º 2
0
 public void WhenTheEntityIdentifiedAsObservesTheObservableIdentifiedAsOnTheEntityIdentifiedAs(string observerId, string observableId, string observeeId)
 {
     _client.Observe(new Identity(RegistrarId), new Identity(observerId), new Identity(observeeId), new Identity(observableId)).Wait();
 }