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