public OAuthConfiguration(XElement tp) { //TODO: Fix this using XElement.SetElementValue _technicalProfile = tp; if (XDomainName != null) { DomainName = XDomainName.Value; } if (XDisplayName != null) { DisplayName = XDisplayName.Value; } if (XProviderName != null) { ProviderName = XProviderName.Value; } if (XAuthorizationEndpoint != null) { AuthorizationEndpoint = XAuthorizationEndpoint.Value; } if (XTokenEndpoint != null) { TokenEndpoint = XTokenEndpoint.Value; } if (XClientId != null) { ClientId = XClientId.Value; } if (XSecret != null) { SecretName = XSecret.Attribute("StorageReferenceId").Value; } }
public SocialIdP(XElement tp) { _technicalProfile = tp; DisplayName = _technicalProfile.Element(Constants.dflt + "DisplayName").Value; if (XClientId != null) { ClientId = XClientId.Value; } if (XSecret != null) { SecretName = XSecret.Attribute("StorageReferenceId").Value; } Delete = new DelegateCommand(() => { MainWindow.Current.DeleteItem.Execute(null); }); }