/// <summary> /// Deletes the Config Store from the Enterprise Single Sign-On (SSO). /// </summary> internal void Delete() { try { var ssoConfigStore = new ISSOConfigStore(); ssoConfigStore.DeleteConfigInfo(_affiliateApplicationName, _identifier); } catch (COMException exception) when((uint)exception.ErrorCode == (uint)HResult.ErrorMappingNonExistent) { } }
/// <summary> /// Deletes the Config Store from the Enterprise Single Sign-On (SSO). /// </summary> internal void Delete() { try { var ssoConfigStore = new ISSOConfigStore(); ssoConfigStore.DeleteConfigInfo(_affiliateApplicationName, _identifier); } catch (COMException exception) { // Error Code = 'The mapping does not exist. For Config Store applications, the config info has not been set.' if ((uint)exception.ErrorCode != 0xC0002A05) { throw; } } }
/// <summary> /// Deletes the config info. /// </summary> private static void DeleteConfigInfo(string affiliateApplication) { ISSOConfigStore ssoConfigStore = new ISSOConfigStore(); ssoConfigStore.DeleteConfigInfo(affiliateApplication, InfoIdentifier); }