IssuedTokenClientBehaviorsElementCollection.cs 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. //------------------------------------------------------------------------------
  2. // Copyright (c) Microsoft Corporation. All rights reserved.
  3. //------------------------------------------------------------------------------
  4. namespace System.ServiceModel.Configuration
  5. {
  6. using System;
  7. using System.Configuration;
  8. using System.Globalization;
  9. using System.ServiceModel;
  10. [ConfigurationCollection(typeof(IssuedTokenClientBehaviorsElement))]
  11. public sealed class IssuedTokenClientBehaviorsElementCollection : ServiceModelConfigurationElementCollection<IssuedTokenClientBehaviorsElement>
  12. {
  13. public IssuedTokenClientBehaviorsElementCollection()
  14. : base()
  15. { }
  16. protected override object GetElementKey(ConfigurationElement element)
  17. {
  18. if (element == null)
  19. {
  20. throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("element");
  21. }
  22. IssuedTokenClientBehaviorsElement behaviorElement = (IssuedTokenClientBehaviorsElement)element;
  23. return behaviorElement.IssuerAddress;
  24. }
  25. }
  26. }