ServiceMetadataContractBehavior.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. //-----------------------------------------------------------------------------
  2. // Copyright (c) Microsoft Corporation. All rights reserved.
  3. //-----------------------------------------------------------------------------
  4. namespace System.ServiceModel.Description
  5. {
  6. using System.Collections.Generic;
  7. using System.ServiceModel.Channels;
  8. using System.ServiceModel.Dispatcher;
  9. public sealed class ServiceMetadataContractBehavior : IContractBehavior
  10. {
  11. bool metadataGenerationDisabled = false;
  12. public ServiceMetadataContractBehavior()
  13. {
  14. }
  15. public ServiceMetadataContractBehavior(bool metadataGenerationDisabled)
  16. : this()
  17. {
  18. this.metadataGenerationDisabled = metadataGenerationDisabled;
  19. }
  20. public bool MetadataGenerationDisabled
  21. {
  22. get { return this.metadataGenerationDisabled; }
  23. set { this.metadataGenerationDisabled = value; }
  24. }
  25. #region IContractBehavior Members
  26. void IContractBehavior.Validate(ContractDescription description, ServiceEndpoint endpoint)
  27. {
  28. }
  29. void IContractBehavior.ApplyDispatchBehavior(ContractDescription description, ServiceEndpoint endpoint, DispatchRuntime dispatch)
  30. {
  31. }
  32. void IContractBehavior.AddBindingParameters(ContractDescription description, ServiceEndpoint endpoint, BindingParameterCollection parameters)
  33. {
  34. }
  35. void IContractBehavior.ApplyClientBehavior(ContractDescription description, ServiceEndpoint endpoint, ClientRuntime proxy)
  36. {
  37. }
  38. #endregion
  39. }
  40. }