public TransportSettingsPropertyValueCollection GetPropertyValues(string applicationName, TransportSettingsContext context, TransportSettingsPropertyCollection collection) { _Provider.ApplicationName = _ApplicationName; var settingscontext = new SettingsContext { { "UserName", context.Username }, { "IsAuthenticated", context.IsAuthenticated } }; var settingspropertycollection = new SettingsPropertyCollection(); foreach (TransportSettingsProperty settingsproperty in collection) { settingspropertycollection.Add(ConvertSettingsProperty(settingsproperty)); } var returncollection = new TransportSettingsPropertyValueCollection(); foreach (SettingsPropertyValue settingspropertyvalue in _Provider.GetPropertyValues(settingscontext, settingspropertycollection)) { returncollection.Add(ConvertSettingsPropertyValue(settingspropertyvalue)); } return(returncollection); }
public void SetPropertyValues(string applicationName, TransportSettingsContext context, TransportSettingsPropertyValueCollection collection) { _Provider.ApplicationName = _ApplicationName; var settingscontext = new SettingsContext { { "UserName", context.Username }, { "IsAuthenticated", context.IsAuthenticated } }; var settingspropertyvaluecollection = new SettingsPropertyValueCollection(); foreach (TransportSettingsPropertyValue propertyvalue in collection) { settingspropertyvaluecollection.Add(ConvertSettingsPropertyValue(propertyvalue)); } _Provider.SetPropertyValues(settingscontext, settingspropertyvaluecollection); }