15 references to Contract
dotnet-svcutil-lib (15)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\DataContractSerializerOperationGenerator.cs (3)
83context.SyncMethod.CustomAttributes.Add(OperationGenerator.GenerateAttributeDeclaration(context.Contract.ServiceContractGenerator, dataContractFormatAttribute)); 219fieldAttributes.Add(OperationGenerator.GenerateAttributeDeclaration(_context.Contract.ServiceContractGenerator, dataMemberAttribute)); 231typeAttributes.Add(OperationGenerator.GenerateAttributeDeclaration(_context.Contract.ServiceContractGenerator, new DataContractAttribute()));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (7)
132_contractName = context.Contract.Contract.CodeName; 302if (TypedMessageHelper.FindGeneratedTypedMessage(_context.Contract, message, out typedMessageRef)) 311CodeTypeDeclaration typedMessageDecl = _context.Contract.TypeFactory.CreateClassType(); 315TypedMessageHelper.AddGeneratedTypedMessage(_context.Contract, message, typedMessageRef); 589CodeTypeDeclaration wrapperTypeDecl = _context.Contract.TypeFactory.CreateClassType(); 925parent._context.Contract.ServiceContractGenerator.Errors.Add(new MetadataConversionError(string.Format(SRServiceModel.SFxCannotImportAsParameters_HeadersAreIgnoredInEncoded, parent._request.MessageName), true/*isWarning*/)); 934parent._context.Contract.ServiceContractGenerator.Errors.Add(new MetadataConversionError(string.Format(SRServiceModel.SFxCannotImportAsParameters_HeadersAreIgnoredInEncoded, parent._response.MessageName), true/*isWarning*/));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceContractGenerator.cs (3)
604CodeTypeReference exceptionTypeReference = fault.DetailType != null ? context.Contract.ServiceContractGenerator.GetCodeTypeReference(fault.DetailType) : fault.DetailTypeReference; 621if (fault.Namespace != context.Contract.Contract.Namespace) 824CodeAttributeDeclaration attrDecl = new CodeAttributeDeclaration(context.Contract.ServiceContractGenerator.GetCodeTypeReference(typeof(TransactionFlowAttribute)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\XmlSerializerOperationGenerator.cs (2)
148context.SyncMethod.CustomAttributes.Add(OperationGenerator.GenerateAttributeDeclaration(context.Contract.ServiceContractGenerator, xmlSerializerFormatAttribute)); 253typeAttributes.Add(OperationGenerator.GenerateAttributeDeclaration(_context.Contract.ServiceContractGenerator, xmlType));