NetHttpWebSocketTransportSettingsElement.cs 1.1 KB

12345678910111213141516171819202122232425262728293031
  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.ServiceModel.Channels;
  8. /// <summary>
  9. /// NetHttpWebSocketTransportSettingsElement for WebSocketTransportSettings
  10. /// </summary>
  11. public sealed partial class NetHttpWebSocketTransportSettingsElement : WebSocketTransportSettingsElement
  12. {
  13. [ConfigurationProperty(ConfigurationStrings.TransportUsage, DefaultValue = NetHttpBindingDefaults.TransportUsage)]
  14. [ServiceModelEnumValidator(typeof(WebSocketTransportUsageHelper))]
  15. public override WebSocketTransportUsage TransportUsage
  16. {
  17. get { return base.TransportUsage; }
  18. set { base.TransportUsage = value; }
  19. }
  20. [ConfigurationProperty(ConfigurationStrings.SubProtocol, DefaultValue = WebSocketTransportSettings.SoapSubProtocol)]
  21. [StringValidator(MinLength = 0)]
  22. public override string SubProtocol
  23. {
  24. get { return base.SubProtocol; }
  25. set { base.SubProtocol = value; }
  26. }
  27. }
  28. }