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);
            }
        }
예제 #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));
            }
        }
예제 #3
0
 public void SendSettings(AppSettingsProperty value)
 {
     base.Channel.SendSettings(value);
 }
예제 #4
0
 public void SettingsReceiveAndApply(AppSettingsProperty value)
 {
     _parent.OnSettingReceive(value);
 }