3 implementations of IContractBehavior
System.ServiceModel.Primitives (2)
System\ServiceModel\DeliveryRequirementsAttribute.cs (1)
15public sealed class DeliveryRequirementsAttribute : Attribute, IContractBehavior
System\ServiceModel\Dispatcher\OperationSelectorBehavior.cs (1)
13internal class OperationSelectorBehavior : IContractBehavior
System.ServiceModel.Primitives.Tests (1)
Channels\BehaviorExtensionTest.cs (1)
129public class TestContractBehaviorAttribute : Attribute, IContractBehavior
31 references to IContractBehavior
System.ServiceModel (1)
netstandard.cs (1)
116[assembly: TypeForwardedTo(typeof(IContractBehavior))]
System.ServiceModel.Primitives (30)
System\ServiceModel\ChannelFactory.cs (2)
541IContractBehavior contractBehavior = implementation as IContractBehavior;
System\ServiceModel\DeliveryRequirementsAttribute.cs (4)
51void IContractBehavior.Validate(ContractDescription description, ServiceEndpoint endpoint) 61void IContractBehavior.AddBindingParameters(ContractDescription description, ServiceEndpoint endpoint, BindingParameterCollection parameters) 65void IContractBehavior.ApplyClientBehavior(ContractDescription description, ServiceEndpoint endpoint, ClientRuntime proxy) 69void IContractBehavior.ApplyDispatchBehavior(ContractDescription description, ServiceEndpoint endpoint, DispatchRuntime dispatch)
System\ServiceModel\Description\ContractDescription.cs (3)
125public KeyedCollection<Type, IContractBehavior> ContractBehaviors 131public KeyedByTypeCollection<IContractBehavior> Behaviors { get; } = new KeyedByTypeCollection<IContractBehavior>();
System\ServiceModel\Description\DispatcherBuilder.cs (2)
97foreach (IContractBehavior icb in endpoint.Contract.Behaviors) 189IContractBehavior behavior = contractDescription.Behaviors[i];
System\ServiceModel\Description\ServiceEndpoint.cs (1)
203IContractBehavior iContractBehavior = contract.Behaviors[j];
System\ServiceModel\Description\TypeLoader.cs (14)
80if (serviceImplementation != null && serviceImplementation is IContractBehavior) 82contractDescription.Behaviors.Add((IContractBehavior)serviceImplementation); 274AddBehaviorsAtOneScope<IContractBehavior, KeyedByTypeCollection<IContractBehavior>>(targetInterface, contractDesc.Behaviors, 305private void GetIContractBehaviorsFromInterfaceType(Type interfaceType, KeyedByTypeCollection<IContractBehavior> behaviors) 307object[] ifaceAttributes = ServiceReflector.GetCustomAttributes(interfaceType, typeof(IContractBehavior), false); 310IContractBehavior behavior = (IContractBehavior)ifaceAttributes[i]; 319delegate (Type currentType, KeyedByTypeCollection<IContractBehavior> behaviors) 321foreach (IContractBehavior iContractBehavior in ServiceReflector.GetCustomAttributes(currentType, typeof(IContractBehavior), false)) 619foreach (IContractBehavior behaviorAttribute in ServiceReflector.GetCustomAttributes(implementationType, typeof(IContractBehavior), false)) 2073if (behavior is IOperationBehavior || behavior is IContractBehavior)
System\ServiceModel\Dispatcher\OperationSelectorBehavior.cs (4)
15void IContractBehavior.Validate(ContractDescription description, ServiceEndpoint endpoint) 19void IContractBehavior.AddBindingParameters(ContractDescription description, ServiceEndpoint endpoint, BindingParameterCollection parameters) 23void IContractBehavior.ApplyDispatchBehavior(ContractDescription description, ServiceEndpoint endpoint, DispatchRuntime dispatch) 31void IContractBehavior.ApplyClientBehavior(ContractDescription description, ServiceEndpoint endpoint, ClientRuntime proxy)