HttpMessageHandlerFactoryElement.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. // <copyright>
  2. // Copyright (c) Microsoft Corporation. All rights reserved.
  3. // </copyright>
  4. namespace System.ServiceModel.Configuration
  5. {
  6. using System.Configuration;
  7. using System.Runtime;
  8. /// <summary>
  9. /// HttpMessageHandlerFactoryElement for HttpMessageHandlerFactory
  10. /// </summary>
  11. public sealed partial class HttpMessageHandlerFactoryElement : ConfigurationElement
  12. {
  13. public HttpMessageHandlerFactoryElement()
  14. {
  15. }
  16. [System.Diagnostics.CodeAnalysis.SuppressMessage(FxCop.Category.Configuration, "Configuration104",
  17. Justification = "Don't need a validator for this strong typed element.")]
  18. [ConfigurationProperty(ConfigurationStrings.Handlers)]
  19. public DelegatingHandlerElementCollection Handlers
  20. {
  21. get { return (DelegatingHandlerElementCollection)this[ConfigurationStrings.Handlers]; }
  22. internal set { base[ConfigurationStrings.Handlers] = value; }
  23. }
  24. [ConfigurationProperty(ConfigurationStrings.Type)]
  25. [StringValidator(MinLength = 0)]
  26. public string Type
  27. {
  28. get { return (string)base[ConfigurationStrings.Type]; }
  29. set { base[ConfigurationStrings.Type] = value; }
  30. }
  31. }
  32. }