42 instantiations of ServiceContractAttribute
System.Data.Services (1)
System\Data\Services\IRequestHandler.cs (1)
24[ServiceContract]
System.ServiceModel (16)
System\ServiceModel\Activation\IConnectionRegister.cs (2)
12[ServiceContract(SessionMode = SessionMode.Required, CallbackContract = typeof(IConnectionDuplicator))] 26[ServiceContract(SessionMode = SessionMode.Required, CallbackContract = typeof(IConnectionDuplicator))]
System\ServiceModel\Channels\PeerServiceMessageContracts.cs (3)
132[ServiceContract(Name = PeerStrings.ServiceContractName, 170[ServiceContract(Name = PeerStrings.ServiceContractName, 178[ServiceContract(Name = PeerStrings.ServiceContractName,
System\ServiceModel\Description\IMetadataExchange.cs (1)
9[ServiceContract(ConfigurationName = ServiceMetadataBehavior.MexContractName, Name = ServiceMetadataBehavior.MexContractName, Namespace = ServiceMetadataBehavior.MexContractNamespace)]
System\ServiceModel\Description\ServiceMetadataExtension.cs (1)
626[ServiceContract]
System\ServiceModel\PeerResolvers\IPeerResolverContract.cs (1)
13[ServiceContract(Name = "IPeerResolverContract",
System\ServiceModel\Security\IWSTrust13AsyncContract.cs (1)
15[ServiceContract( Name = WSTrustServiceContractConstants.Contracts.IWSTrust13Async, Namespace = WSTrustServiceContractConstants.Namespace )]
System\ServiceModel\Security\IWSTrust13SyncContract.cs (1)
14[ServiceContract( Name = WSTrustServiceContractConstants.Contracts.IWSTrust13Sync, Namespace = WSTrustServiceContractConstants.Namespace )]
System\ServiceModel\Security\IWSTrustChannelContract.cs (1)
16[ServiceContract]
System\ServiceModel\Security\IWSTrustContract.cs (1)
14[ServiceContract]
System\ServiceModel\Security\IWSTrustFeb2005AsyncContract.cs (1)
15[ServiceContract( Name = WSTrustServiceContractConstants.Contracts.IWSTrustFeb2005Async, Namespace = WSTrustServiceContractConstants.Namespace )]
System\ServiceModel\Security\IWSTrustFeb2005SyncContract.cs (1)
14[ServiceContract( Name = WSTrustServiceContractConstants.Contracts.IWSTrustFeb2005Sync, Namespace = WSTrustServiceContractConstants.Namespace )]
System\ServiceModel\Security\WSTrustDec2005.cs (1)
177[ServiceContract]
System\ServiceModel\Security\WSTrustFeb2005.cs (1)
267[ServiceContract]
System.ServiceModel.Activities (2)
System\ServiceModel\Activities\IWorkflowInstanceManagement.cs (2)
14[ServiceContract(Name = XD2.WorkflowInstanceManagementService.ContractName, Namespace = XD2.WorkflowServices.Namespace)] 138[ServiceContract(Name = XD2.WorkflowInstanceManagementService.ContractName, Namespace = XD2.WorkflowServices.Namespace,
System.ServiceModel.Discovery (13)
System\ServiceModel\Discovery\Version11\IAnnouncementContract11.cs (1)
10[ServiceContract(
System\ServiceModel\Discovery\Version11\IDiscoveryContractAdhoc11.cs (1)
9[ServiceContract(
System\ServiceModel\Discovery\Version11\IDiscoveryContractManaged11.cs (1)
9[ServiceContract(
System\ServiceModel\Discovery\Version11\IDiscoveryResponseContract11.cs (1)
9[ServiceContract(
System\ServiceModel\Discovery\VersionApril2005\IAnnouncementContractApril2005.cs (1)
10[ServiceContract(
System\ServiceModel\Discovery\VersionApril2005\IDiscoveryContractAdhocApril2005.cs (1)
9[ServiceContract(
System\ServiceModel\Discovery\VersionApril2005\IDiscoveryContractApril2005.cs (1)
9[ServiceContract(
System\ServiceModel\Discovery\VersionApril2005\IDiscoveryContractManagedApril2005.cs (1)
9[ServiceContract(
System\ServiceModel\Discovery\VersionApril2005\IDiscoveryResponseContractApril2005.cs (1)
9[ServiceContract(
System\ServiceModel\Discovery\VersionCD1\IAnnouncementContractCD1.cs (1)
10[ServiceContract(
System\ServiceModel\Discovery\VersionCD1\IDiscoveryContractAdhocCD1.cs (1)
9[ServiceContract(
System\ServiceModel\Discovery\VersionCD1\IDiscoveryContractManagedCD1.cs (1)
9[ServiceContract(
System\ServiceModel\Discovery\VersionCD1\IDiscoveryResponseContractCD1.cs (1)
9[ServiceContract(
System.ServiceModel.Routing (5)
System\ServiceModel\Routing\IDuplexRouterCallback.cs (1)
11[ServiceContract(Namespace = RoutingUtilities.RoutingNamespace, SessionMode = SessionMode.Allowed)]
System\ServiceModel\Routing\IDuplexSessionRouter.cs (1)
11[ServiceContract(Namespace = RoutingUtilities.RoutingNamespace, SessionMode = SessionMode.Required, CallbackContract = typeof(IDuplexRouterCallback))]
System\ServiceModel\Routing\IRequestReplyRouter.cs (1)
11[ServiceContract(Namespace = RoutingUtilities.RoutingNamespace, SessionMode = SessionMode.Allowed)]
System\ServiceModel\Routing\ISimplexDatagramRouter.cs (1)
11[ServiceContract(Namespace = RoutingUtilities.RoutingNamespace, SessionMode = SessionMode.Allowed)]
System\ServiceModel\Routing\ISimplexSessionRouter.cs (1)
11[ServiceContract(Namespace = RoutingUtilities.RoutingNamespace, SessionMode = SessionMode.Required)]
System.Web.Extensions (3)
ApplicationServices\AuthenticationService.cs (1)
25ServiceContract(Namespace="http://asp.net/ApplicationServices/v200"),
ApplicationServices\ProfileService.cs (1)
20[ServiceContract(Namespace="http://asp.net/ApplicationServices/v200")]
ApplicationServices\RoleService.cs (1)
26ServiceContract(Namespace = "http://asp.net/ApplicationServices/v200"),
System.WorkflowServices (2)
System\ServiceModel\Activities\IExternalDataExchange.cs (1)
9[ServiceContract(Namespace = Description.WorkflowRuntimeEndpoint.ExternalDataExchangeNamespace)]
System\Workflow\Activities\ContractType.cs (1)
69this.attributes = new Attribute[] { new ServiceContractAttribute() };
37 references to ServiceContractAttribute
System.Activities.Core.Presentation (1)
System\ServiceModel\Activities\Presentation\ServiceContractImporter.cs (1)
47return t => t.IsDefined(typeof(ServiceContractAttribute), true) && !t.IsGenericType;
System.ServiceModel (22)
System\ServiceModel\Description\ServiceContractGenerator.cs (1)
397CodeAttributeDeclaration serviceContractAttr = new CodeAttributeDeclaration(context.ServiceContractGenerator.GetCodeTypeReference(typeof(ServiceContractAttribute)));
System\ServiceModel\Description\ServiceReflector.cs (9)
369if (service.IsDefined(typeof(ServiceContractAttribute), false)) 392if (t.IsDefined(typeof(ServiceContractAttribute), false)) 409if (ServiceReflector.GetSingleAttribute<ServiceContractAttribute>(service) != null) 422if (ServiceReflector.GetSingleAttribute<ServiceContractAttribute>(t) != null) 429if (ServiceReflector.GetSingleAttribute<ServiceContractAttribute>(service) != null) 639ServiceContractAttribute contractAttribute; 643static internal Type GetContractTypeAndAttribute(Type interfaceType, out ServiceContractAttribute contractAttribute) 645contractAttribute = GetSingleAttribute<ServiceContractAttribute>(interfaceType); 670contractAttribute = GetSingleAttribute<ServiceContractAttribute>(potentialContractRoot);
System\ServiceModel\Description\TypeLoader.cs (11)
69ServiceContractAttribute actualContractAttribute; 109if (ServiceReflector.GetSingleAttribute<ServiceContractAttribute>(service) != null) 133if (ServiceReflector.GetSingleAttribute<ServiceContractAttribute>(aParentType) == null) 214ServiceContractAttribute contractAttr = ServiceReflector.GetRequiredSingleAttribute<ServiceContractAttribute>(reflectionInfo.iface); 661internal static void EnsureSubcontract(ServiceContractAttribute svcContractAttr, Type contractType) 669ServiceContractAttribute inheritedContractAttr = ServiceReflector.GetRequiredSingleAttribute<ServiceContractAttribute>(inheritedContractType); 689ContractDescription CreateContractDescription(ServiceContractAttribute contractAttr, Type contractType, Type serviceType, out ContractReflectionInfo reflectionInfo, object serviceImplementation) 721ServiceContractAttribute inheritedContractAttr = ServiceReflector.GetRequiredSingleAttribute<ServiceContractAttribute>(inheritedContractType);
System\ServiceModel\ServiceHost.cs (1)
1747if (!implementedContract.IsDefined(typeof(ServiceContractAttribute), false))
System.Web.Extensions (2)
Compilation\WCFModel\VSWCFServiceContractGenerator.cs (1)
1687if (String.Equals(codeAttribute.AttributeType.BaseType, typeof(System.ServiceModel.ServiceContractAttribute).FullName, StringComparison.Ordinal))
Script\Services\ProxyGenerator.cs (1)
72object[] attribs = type.GetCustomAttributes(typeof(ServiceContractAttribute), true);
System.WorkflowServices (12)
System\ServiceModel\WorkflowServiceHost.cs (1)
111if (!implementedContract.IsDefined(typeof(ServiceContractAttribute), false))
System\Workflow\Activities\Design\OperationPickerDialog.cs (1)
527if (type.IsDefined(typeof(ServiceContractAttribute), true))
System\Workflow\Activities\ServiceOperationHelpers.cs (5)
137object[] contractAttribs = contractType.GetCustomAttributes(typeof(ServiceContractAttribute), false); 140if (contractAttribs[0] is ServiceContractAttribute) 147if (typeof(ServiceContractAttribute).IsAssignableFrom(attribInfoAttrib.AttributeInfo.AttributeType)) 185if (contractType.IsDefined(typeof(ServiceContractAttribute), false)) 191if (contract.IsDefined(typeof(ServiceContractAttribute), false))
System\Workflow\Activities\ValidationHelper.cs (5)
241currentInterfaceType.IsDefined(typeof(ServiceContractAttribute), false)) 1014object[] serviceContractAttributes = contractType.GetCustomAttributes(typeof(ServiceContractAttribute), true); 1037if (serviceContractAttributes[0] is ServiceContractAttribute) 1039contractSessionMode = ((ServiceContractAttribute) serviceContractAttributes[0]).SessionMode; 1044if (typeof(ServiceContractAttribute).IsAssignableFrom(attribInfoAttrib.AttributeInfo.AttributeType))