public void PropertyChanged(object sender, PropertyChangedEventArgs e)
        {
            if (_ignoredProperties.Contains(e.PropertyName))
            {
                return;
            }
            PropertyInfo        property = sender.GetType().GetProperty(e.PropertyName);
            object              value    = property.GetValue(sender);
            AppSettingsProperty setting  = new AppSettingsProperty(e.PropertyName, value.ToString(), property.PropertyType.FullName);

            if (_isClientConnected)
            {
                this.proxy.SendSettings(setting);
            }
        }
Example #2
0
        void IControllerService.SendSettings(AppSettingsProperty value)
        {
            try
            {
                clientCallback?.SettingsReceiveAndApply(value);
            }
            catch (Exception e)
            {
                FaultContract fault = new FaultContract();

                fault.Result      = false;
                fault.Message     = e.Message;
                fault.Description = "WCF description";

                Trace.TraceError("[WCF] {0}", e);

                throw new FaultException <FaultContract>(fault, new FaultReason(e.Message));
            }
        }
Example #3
0
 public void SendSettings(AppSettingsProperty value)
 {
     base.Channel.SendSettings(value);
 }
Example #4
0
 public void SettingsReceiveAndApply(AppSettingsProperty value)
 {
     _parent.OnSettingReceive(value);
 }