20 references to ServiceContractGenerator
System.ServiceModel (20)
System\ServiceModel\Description\ClientClassGenerator.cs (2)
168
clientType.BaseTypes.Add(new CodeTypeReference(context.
ServiceContractGenerator
.GetCodeTypeReference(typeof(ClientBase<>)).BaseType, context.ContractTypeReference));
170
clientType.BaseTypes.Add(new CodeTypeReference(context.
ServiceContractGenerator
.GetCodeTypeReference(typeof(DuplexClientBase<>)).BaseType, context.ContractTypeReference));
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 (4)
808
contract.
ServiceContractGenerator
.GeneratedTypedMessages.Add(message, codeTypeReference);
819
return contract.
ServiceContractGenerator
.GeneratedTypedMessages.TryGetValue(message, out codeTypeReference);
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 (9)
343
beginMethod.Parameters.Add(new CodeParameterDeclarationExpression(context.
ServiceContractGenerator
.GetCodeTypeReference(typeof(AsyncCallback)), Strings.AsyncCallbackArgName));
344
beginMethod.Parameters.Add(new CodeParameterDeclarationExpression(context.
ServiceContractGenerator
.GetCodeTypeReference(typeof(object)), Strings.AsyncStateArgName));
345
beginMethod.ReturnType = context.
ServiceContractGenerator
.GetCodeTypeReference(typeof(IAsyncResult));
350
endMethod.Parameters.Add(new CodeParameterDeclarationExpression(context.
ServiceContractGenerator
.GetCodeTypeReference(typeof(IAsyncResult)), Strings.AsyncResultArgName));
397
CodeAttributeDeclaration serviceContractAttr = new CodeAttributeDeclaration(context.
ServiceContractGenerator
.GetCodeTypeReference(typeof(ServiceContractAttribute)));
452
CodeAttributeDeclaration serviceOperationAttr = new CodeAttributeDeclaration(context.
ServiceContractGenerator
.GetCodeTypeReference(typeof(OperationContractAttribute)));
494
channelType.BaseTypes.Add(context.
ServiceContractGenerator
.GetCodeTypeReference(typeof(IClientChannel)));
658
CodeTypeReference exceptionTypeReference = fault.DetailType != null ? context.Contract.
ServiceContractGenerator
.GetCodeTypeReference(fault.DetailType) : fault.DetailTypeReference;
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));