MexHttpBindingCollectionElement.cs 1.1 KB

12345678910111213141516171819202122232425262728
  1. //------------------------------------------------------------------------------
  2. // Copyright (c) Microsoft Corporation. All rights reserved.
  3. //------------------------------------------------------------------------------
  4. namespace System.ServiceModel.Configuration
  5. {
  6. using System.Configuration;
  7. using System.ServiceModel;
  8. using System.Globalization;
  9. using System.ServiceModel.Security;
  10. using System.Text;
  11. using System.ComponentModel;
  12. using System.ServiceModel.Channels;
  13. using System.ServiceModel.Description;
  14. public partial class MexHttpBindingCollectionElement : MexBindingBindingCollectionElement<WSHttpBinding, MexHttpBindingElement>
  15. {
  16. internal static MexHttpBindingCollectionElement GetBindingCollectionElement()
  17. {
  18. return (MexHttpBindingCollectionElement)ConfigurationHelpers.GetBindingCollectionElement(ConfigurationStrings.MexHttpBindingCollectionElementName);
  19. }
  20. protected internal override Binding GetDefault()
  21. {
  22. return MetadataExchangeBindings.GetBindingForScheme(Uri.UriSchemeHttp);
  23. }
  24. }
  25. }