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