| | | 1 | | // Licensed to the .NET Foundation under one or more agreements. |
| | | 2 | | // The .NET Foundation licenses this file to you under the MIT license. |
| | | 3 | | |
| | | 4 | | using CoreWCF.Channels; |
| | | 5 | | using CoreWCF.Dispatcher; |
| | | 6 | | |
| | | 7 | | namespace CoreWCF.Description |
| | | 8 | | { |
| | | 9 | | public sealed class ServiceMetadataContractBehavior : IContractBehavior |
| | | 10 | | { |
| | 0 | 11 | | public ServiceMetadataContractBehavior() |
| | | 12 | | { |
| | 0 | 13 | | } |
| | | 14 | | |
| | 0 | 15 | | public ServiceMetadataContractBehavior(bool metadataGenerationDisabled) |
| | | 16 | | { |
| | 0 | 17 | | MetadataGenerationDisabled = metadataGenerationDisabled; |
| | 0 | 18 | | } |
| | | 19 | | |
| | 0 | 20 | | public bool MetadataGenerationDisabled { get; set; } = false; |
| | | 21 | | |
| | | 22 | | #region IContractBehavior Members |
| | | 23 | | void IContractBehavior.Validate(ContractDescription description, ServiceEndpoint endpoint) |
| | | 24 | | { |
| | 0 | 25 | | } |
| | | 26 | | |
| | | 27 | | void IContractBehavior.ApplyDispatchBehavior(ContractDescription description, ServiceEndpoint endpoint, Dispatch |
| | | 28 | | { |
| | 0 | 29 | | } |
| | | 30 | | |
| | | 31 | | void IContractBehavior.AddBindingParameters(ContractDescription description, ServiceEndpoint endpoint, BindingPa |
| | | 32 | | { |
| | 0 | 33 | | } |
| | | 34 | | |
| | | 35 | | void IContractBehavior.ApplyClientBehavior(ContractDescription description, ServiceEndpoint endpoint, ClientRunt |
| | | 36 | | { |
| | 0 | 37 | | } |
| | | 38 | | #endregion |
| | | 39 | | } |
| | | 40 | | } |