X509ScopedServiceCertificateElementCollection.cs 1.0 KB

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