15 references to Contract
System.ServiceModel (15)
System\ServiceModel\Description\DataContractSerializerOperationGenerator.cs (3)
83context.SyncMethod.CustomAttributes.Add(OperationGenerator.GenerateAttributeDeclaration(context.Contract.ServiceContractGenerator, dataContractFormatAttribute)); 220fieldAttributes.Add(OperationGenerator.GenerateAttributeDeclaration(context.Contract.ServiceContractGenerator, dataMemberAttribute)); 233typeAttributes.Add(OperationGenerator.GenerateAttributeDeclaration(context.Contract.ServiceContractGenerator, new DataContractAttribute()));
System\ServiceModel\Description\OperationGenerator.cs (7)
132this.ContractName = context.Contract.Contract.CodeName; 304if (TypedMessageHelper.FindGeneratedTypedMessage(this.Context.Contract, message, out typedMessageRef)) 313CodeTypeDeclaration typedMessageDecl = Context.Contract.TypeFactory.CreateClassType(); 317TypedMessageHelper.AddGeneratedTypedMessage(this.Context.Contract, message, typedMessageRef); 592CodeTypeDeclaration wrapperTypeDecl = Context.Contract.TypeFactory.CreateClassType(); 932parent.Context.Contract.ServiceContractGenerator.Errors.Add(new MetadataConversionError(SR.GetString(SR.SFxCannotImportAsParameters_HeadersAreIgnoredInEncoded, parent.Request.MessageName), true/*isWarning*/)); 941parent.Context.Contract.ServiceContractGenerator.Errors.Add(new MetadataConversionError(SR.GetString(SR.SFxCannotImportAsParameters_HeadersAreIgnoredInEncoded, parent.Response.MessageName), true/*isWarning*/));
System\ServiceModel\Description\ServiceContractGenerator.cs (3)
658CodeTypeReference exceptionTypeReference = fault.DetailType != null ? context.Contract.ServiceContractGenerator.GetCodeTypeReference(fault.DetailType) : fault.DetailTypeReference; 675if (fault.Namespace != context.Contract.Contract.Namespace) 879CodeAttributeDeclaration attrDecl = new CodeAttributeDeclaration(context.Contract.ServiceContractGenerator.GetCodeTypeReference(typeof(TransactionFlowAttribute)));
System\ServiceModel\Description\XmlSerializerOperationGenerator.cs (2)
147context.SyncMethod.CustomAttributes.Add(OperationGenerator.GenerateAttributeDeclaration(context.Contract.ServiceContractGenerator, xmlSerializerFormatAttribute)); 252typeAttributes.Add(OperationGenerator.GenerateAttributeDeclaration(context.Contract.ServiceContractGenerator, xmlType));