System\ServiceModel\ComIntegration\ComPlusDiagnosticTraceRecords.cs (3)
34public static void Trace(TraceEventType type, int traceCode, string description, ServiceInfo info, ContractDescription contract)
327WsdlNS.ServiceDescription wsdl, ContractDescription contract, Binding binding, XmlSchemas schemas)
368public static void Trace(TraceEventType type, int traceCode, string description, ContractDescription contract, Binding binding, string address)
System\ServiceModel\ComIntegration\ComPlusTypeLoader.cs (12)
27Dictionary<Guid, ContractDescription> contracts;
35this.contracts = new Dictionary<Guid, ContractDescription>();
69ContractDescription CreateContractDescriptionInternal(Guid iid, Type type)
78ContractDescription contract = new ContractDescription(contractConfigElement.Name, contractConfigElement.Namespace);
129void ConfigureContractDescriptionBehaviors(ContractDescription contract)
172OperationDescription CreateOperationDescription(ContractDescription contract, MethodInfo methodInfo, ComContractElement config, bool allowReferences)
248MessageDescription CreateIncomingMessageDescription(ContractDescription contract,
267MessageDescription CreateOutgoingMessageDescription(ContractDescription contract,
287MessageDescription CreateParameterMessageDescription(ContractDescription contract,
362ContractDescription ResolveIMetadataExchangeToContract()
369public ContractDescription ResolveContract(string contractTypeString)
385ContractDescription contract;
System\ServiceModel\Description\ConfigLoader.cs (12)
473ContractDescription contract = LookupContract(endpointElement.Contract, description.Name);
584internal static ServiceEndpoint LookupEndpoint(string configurationName, EndpointAddress address, ContractDescription contract)
592internal static ServiceEndpoint LookupEndpoint(string configurationName, EndpointAddress address, ContractDescription contract, ContextInformation configurationContext)
610static ServiceEndpoint LookupEndpoint(ChannelEndpointElement channelEndpointElement, ContextInformation context, EndpointAddress address, ContractDescription contract)
725EndpointAddress address, ContextInformation context, ContractDescription contract, out ServiceEndpoint endpoint)
904ContractDescription contract = null;
1273static bool IsChannelElementMatch(ChannelEndpointElement channelElement, ContractDescription contract, EndpointAddress address, bool useChannelElementKind, out ServiceEndpoint serviceEndpoint)
1317static ChannelEndpointElement LookupChannel(ContextInformation configurationContext, string configurationName, ContractDescription contract,
1389internal ContractDescription LookupContract(string contractName, string serviceName)
1391ContractDescription contract = LookupContractForStandardEndpoint(contractName, serviceName);
1407internal ContractDescription LookupContractForStandardEndpoint(string contractName, string serviceName)
1409ContractDescription contract = contractResolver.ResolveContract(contractName);
System\ServiceModel\Description\MetadataResolver.cs (19)
27public static ServiceEndpointCollection Resolve(IEnumerable<ContractDescription> contracts, EndpointAddress address)
31public static ServiceEndpointCollection Resolve(IEnumerable<ContractDescription> contracts, EndpointAddress address, MetadataExchangeClient client)
61public static ServiceEndpointCollection Resolve(IEnumerable<ContractDescription> contracts, Uri address, MetadataExchangeClientMode mode)
65public static ServiceEndpointCollection Resolve(IEnumerable<ContractDescription> contracts, Uri address, MetadataExchangeClientMode mode, MetadataExchangeClient client)
95public static IAsyncResult BeginResolve(IEnumerable<ContractDescription> contracts, EndpointAddress address, AsyncCallback callback, object asyncState)
99public static IAsyncResult BeginResolve(IEnumerable<ContractDescription> contracts, EndpointAddress address, MetadataExchangeClient client, AsyncCallback callback, object asyncState)
127public static IAsyncResult BeginResolve(IEnumerable<ContractDescription> contracts, Uri address, MetadataExchangeClientMode mode, AsyncCallback callback, object asyncState)
131public static IAsyncResult BeginResolve(IEnumerable<ContractDescription> contracts, Uri address, MetadataExchangeClientMode mode, MetadataExchangeClient client,
163IEnumerable<ContractDescription> knownContracts;
165internal AsyncMetadataResolverHelper(EndpointAddress address, MetadataExchangeClientMode mode, MetadataExchangeClient client, IEnumerable<ContractDescription> knownContracts, AsyncCallback callback, object asyncState)
230private static ServiceEndpointCollection ImportEndpoints(MetadataSet metadataSet, IEnumerable<ContractDescription> contracts, MetadataExchangeClient client)
239foreach (ContractDescription cd in contracts)
244foreach (ContractDescription cd in contracts)
280private static void ValidateContracts(IEnumerable<ContractDescription> contracts)
284foreach (ContractDescription cd in contracts)
307private static Collection<ContractDescription> CreateContractCollection(Type contract)
309Collection<ContractDescription> contracts = new Collection<ContractDescription>();
310contracts.Add(ContractDescription.GetContract(contract));
System\ServiceModel\Description\TypeLoader.cs (22)
45readonly Dictionary<Type, ContractDescription> contracts;
51this.contracts = new Dictionary<Type, ContractDescription>();
56ContractDescription LoadContractDescriptionHelper(Type contractType, Type serviceType, object serviceImplementation)
58ContractDescription contractDescription;
87foreach (ContractDescription inheritedContract in contractDescription.GetInheritedContracts())
156public ContractDescription LoadContractDescription(Type contractType)
163public ContractDescription LoadContractDescription(Type contractType, Type serviceType)
171public ContractDescription LoadContractDescription(Type contractType, Type serviceType, object serviceImplementation)
180ContractDescription LoadOutputChannelContractDescription()
184ContractDescription contract = new ContractDescription(contractName.Name, contractName.Namespace);
195ContractDescription LoadRequestChannelContractDescription()
199ContractDescription contract = new ContractDescription(contractName.Name, contractName.Namespace);
212void AddBehaviors(ContractDescription contractDesc, Type implType, bool implIsCallback, ContractReflectionInfo reflectionInfo)
327static void UpdateContractDescriptionWithAttributesFromServiceType(ContractDescription description, Type serviceType)
347void UpdateOperationsWithInterfaceAttributes(ContractDescription contractDesc, ContractReflectionInfo reflectionInfo)
613void CreateOperationDescriptions(ContractDescription contractDescription,
616ContractDescription declaringContract,
689ContractDescription CreateContractDescription(ServiceContractAttribute contractAttr, Type contractType, Type serviceType, out ContractReflectionInfo reflectionInfo, object serviceImplementation)
694ContractDescription contractDescription = new ContractDescription(contractName.Name, contractName.Namespace);
722ContractDescription inheritedContractDescription = LoadContractDescriptionHelper(inheritedContractType, serviceType, serviceImplementation);
798OperationDescription CreateOperationDescription(ContractDescription contractDescription, MethodInfo methodInfo, MessageDirection direction,
799ContractReflectionInfo reflectionInfo, ContractDescription declaringContract)
System\ServiceModel\Description\WsdlExporter.cs (13)
28Dictionary<ContractDescription, WsdlContractConversionContext> exportedContracts
29= new Dictionary<ContractDescription, WsdlContractConversionContext>();
33public override void ExportContract(ContractDescription contract)
254WsdlNS.PortType CreateWsdlPortType(ContractDescription contract)
269WsdlNS.Operation CreateWsdlOperation(OperationDescription operation, ContractDescription contract)
375WsdlNS.OperationBinding CreateWsdlOperationBinding(ContractDescription contract, OperationDescription operation)
1038internal static XmlQualifiedName GetPortTypeQName(ContractDescription contract)
1088internal static string GetWsdlOperationName(OperationDescription operationDescription, ContractDescription parentContractDescription)
1104internal static void AddUsingSessionAttributeIfNeeded(WsdlNS.PortType wsdlPortType, ContractDescription contract)
1126OperationDescription operation, ContractDescription contract)
1202Exception ThrowExtensionException(ContractDescription contract, IWsdlExportExtension exporter, Exception e)
1230public readonly ContractDescription Contract;
1233public BindingDictionaryKey(ContractDescription contract, Binding binding)
System\ServiceModel\Description\WsdlImporter.cs (19)
103public override Collection<ContractDescription> ImportAllContracts()
109Collection<ContractDescription> contracts = new Collection<ContractDescription>();
116ContractDescription contract = ImportWsdlPortType(wsdlPortType, WsdlPortTypeImportOptions.ReuseExistingContracts, ErrorBehavior.DoNotThrowExceptions);
163public ContractDescription ImportContract(WsdlNS.PortType wsdlPortType)
219internal ServiceEndpointCollection ImportEndpoints(ContractDescription contract)
297ContractDescription ImportWsdlPortType(WsdlNS.PortType wsdlPortType, WsdlPortTypeImportOptions importOptions, ErrorBehavior errorBehavior)
304ContractDescription contractDescription = null;
378ContractDescription contractDescription = GetOrImportContractDescription(wsdlBinding.Type, out wasExistingContract);
532ContractDescription CreateContractDescription(WsdlNS.PortType wsdlPortType, XmlQualifiedName wsdlPortTypeQName)
534ContractDescription contractDescription;
541OperationDescription CreateOperationDescription(WsdlNS.PortType wsdlPortType, WsdlNS.Operation wsdlOperation, ContractDescription contract)
573ContractDescription GetOrImportContractDescription(XmlQualifiedName wsdlPortTypeQName, out bool wasExistingContractDescription)
575ContractDescription contractDescription;
643bool TryFindExistingContract(XmlQualifiedName wsdlPortTypeQName, out ContractDescription existingContract)
984static OperationDescription FindOperationDescription(ContractDescription contract, WsdlNS.OperationBinding wsdlOperationBinding)
995static bool CompareOperations(OperationDescription operationDescription, ContractDescription parentContractDescription, WsdlNS.OperationBinding wsdlOperationBinding)
1279internal static void SetSession(ContractDescription contractDescription, WsdlNS.PortType wsdlPortType)
1523IEnumerable<WsdlNS.Binding> FindBindingsForContract(ContractDescription contract)
System\ServiceModel\Dispatcher\SecurityValidationBehavior.cs (31)
164void ValidateBinding(Binding binding, ContractDescription contract, out SecurityBindingElement securityBindingElement)
174void ValidateSecurityBinding(SecurityBindingElement sbe, Binding binding, ContractDescription contract)
189void ValidateNoSecurityBinding(Binding binding, ContractDescription contract)
203static SecurityBindingElement GetSecurityBinding(Binding binding, ContractDescription contract)
231static public void ValidateSecurityBinding(SecurityBindingElement sbe, Binding binding, ContractDescription contract)
308static void ValidateWindowsIdentityCapability(Binding binding, ContractDescription contract, OperationDescription operation)
404static public void ValidateSecurityBinding(SecurityBindingElement sbe, Binding binding, ContractDescription contract)
412static public void ValidateNoSecurityBinding(Binding binding, ContractDescription contract)
417static void ValidateContract(Binding binding, ContractDescription contract, ProtectionLevel defaultRequestProtectionLevel, ProtectionLevel defaultResponseProtectionLevel)
491static public void ValidateSecurityBinding(SecurityBindingElement sbe, Binding binding, ContractDescription contract)
499static public void ValidateNoSecurityBinding(Binding binding, ContractDescription contract)
504static void ValidateContract(Binding binding, ContractDescription contract, ProtectionLevel defaultRequestProtectionLevel, ProtectionLevel defaultResponseProtectionLevel)
512static internal void GetRequiredProtectionLevels(ContractDescription contract, ProtectionLevel defaultRequestProtectionLevel, ProtectionLevel defaultResponseProtectionLevel, out ProtectionLevel request, out ProtectionLevel response)
543static void ValidateBindingProtectionCapability(Binding binding, ContractDescription contract, ProtectionLevel request, ProtectionLevel response)
579static public void ValidateSecurityBinding(SecurityBindingElement sbe, Binding binding, ContractDescription contract)
632static public void ValidateNoSecurityBinding(Binding binding, ContractDescription contract)
648static public void ValidateSecurityBinding(SecurityBindingElement sbe, Binding binding, ContractDescription contract)
670static public void ValidateNoSecurityBinding(Binding binding, ContractDescription contract)
677static public void ValidateSecurityBinding(SecurityBindingElement securityBindingElement, Binding binding, ContractDescription contract)
719static public void ValidateNoSecurityBinding(Binding binding, ContractDescription contract)
726static public void ValidateSecurityBinding(SecurityBindingElement sbe, Binding binding, ContractDescription contract)
762static public void ValidateNoSecurityBinding(Binding binding, ContractDescription contract)
786static public void Validate(SecurityBindingElement sbe, Binding binding, ContractDescription contract, KeyedByTypeCollection<IServiceBehavior> behaviors)
849static public void ValidateSecurityBinding(SecurityBindingElement sbe, Binding binding, ContractDescription contract)
862static public void ValidateNoSecurityBinding(Binding binding, ContractDescription contract)
869static public void ValidateSecurityBinding(SecurityBindingElement sbe, Binding binding, ContractDescription contract)
883static public void ValidateNoSecurityBinding(Binding binding, ContractDescription contract)
890static public void ValidateSecurityBinding(SecurityBindingElement sbe, Binding binding, ContractDescription contract)
900static public void ValidateNoSecurityBinding(Binding binding, ContractDescription contract)
907static public void ValidateSecurityBinding(SecurityBindingElement sbe, Binding binding, ContractDescription contract)
921static public void ValidateNoSecurityBinding(Binding binding, ContractDescription contract)
System\ServiceModel\ServiceHost.cs (32)
41IDictionary<string, ContractDescription> implementedContracts;
223protected internal IDictionary<string, ContractDescription> ImplementedContracts
372ContractDescription contract = configLoader.LookupContract(implementedContract, this.Description.Name);
536protected abstract ServiceDescription CreateDescription(out IDictionary<string, ContractDescription> implementedContracts);
687internal virtual IContractResolver GetContractResolver(IDictionary<string, ContractDescription> implementedContracts)
756IDictionary<string, ContractDescription> implementedContracts = null;
1601IDictionary<string, ContractDescription> implementedContracts;
1603public ImplementedContractsContractResolver(IDictionary<string, ContractDescription> implementedContracts)
1608public ContractDescription ResolveContract(string contractName)
1617Dictionary<string, ContractDescription> behaviorContracts;
1619public Dictionary<string, ContractDescription> BehaviorContracts
1627behaviorContracts = new Dictionary<string, ContractDescription>();
1630public ContractDescription ResolveContract(string contractName)
1632ContractDescription contract = serviceResolver.ResolveContract(contractName);
1787List<ContractDescription> mostSpecificContracts = new List<ContractDescription>();
1791ContractDescription contract = this.reflectedContracts[i];
1797ContractDescription otherContract = this.reflectedContracts[j];
1816foreach (ContractDescription contract in mostSpecificContracts)
1946protected override ServiceDescription CreateDescription(out IDictionary<string, ContractDescription> implementedContracts)
1992ContractDescription contract = null;
1995contract = ContractDescription.GetContract(contractType, serviceInstanceUsedAsABehavior);
1999contract = ContractDescription.GetContract(contractType, this.serviceType);
2003Collection<ContractDescription> inheritedContracts = contract.GetInheritedContracts();
2006ContractDescription inheritedContract = inheritedContracts[j];
2052class ReflectedContractCollection : KeyedCollection<Type, ContractDescription>
2059protected override Type GetKeyForItem(ContractDescription item)
2067public IDictionary<string, ContractDescription> ToImplementedContracts()
2069Dictionary<string, ContractDescription> implementedContracts = new Dictionary<string, ContractDescription>();
2070foreach (ContractDescription contract in this.Items)
2077internal static string GetConfigKey(ContractDescription contract)