示例#1
0
        private void Observation(Common.Dto.Identity registrar, Common.Dto.Identity entity, Common.Dto.Observation message)
        {
            string registrationKey = Registration.Key.For(registrar, entity);

            System.Diagnostics.Debug.WriteLine(string.Format("Client Received Message For: '{0}'", registrationKey));

            Registration.IInstance registration;

            if (_registrations.TryGetValue(registrationKey, out registration))
            {
                registration.Consumer.OnNext(message.AsMessage());
            }
        }