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