22 references to GetCodeTypeReference
System.ServiceModel (22)
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\OperationGenerator.cs (6)
382
this.Method.Parameters.Insert(0, new CodeParameterDeclarationExpression(Context.ServiceContractGenerator.
GetCodeTypeReference
((typeof(Message))), "request"));
384
this.EndMethod.ReturnType = Context.ServiceContractGenerator.
GetCodeTypeReference
(typeof(Message));
692
type = Context.ServiceContractGenerator.
GetCodeTypeReference
(typeof(byte[]));
744
return Context.ServiceContractGenerator.
GetCodeTypeReference
(setting.Type);
969
taskReturnType = new CodeTypeReference(this.Context.ServiceContractGenerator.
GetCodeTypeReference
(ServiceReflector.taskTResultType).BaseType, resultType);
1001
CodeAttributeDeclaration attr = new CodeAttributeDeclaration(generator.
GetCodeTypeReference
(attributeType));
System\ServiceModel\Description\ServiceContractGenerator.cs (14)
152
retVal =
GetCodeTypeReference
(existingType);
179
return
GetCodeTypeReference
(existingType);
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)));
545
codeType.CustomAttributes.Add(new CodeAttributeDeclaration(parent.
GetCodeTypeReference
(typeof(DebuggerStepThroughAttribute))));
551
CodeAttributeDeclaration generatedCodeAttribute = new CodeAttributeDeclaration(parent.
GetCodeTypeReference
(typeof(GeneratedCodeAttribute)));
658
CodeTypeReference exceptionTypeReference = fault.DetailType != null ? context.Contract.ServiceContractGenerator.
GetCodeTypeReference
(fault.DetailType) : fault.DetailTypeReference;
661
CodeAttributeDeclaration faultContractAttr = new CodeAttributeDeclaration(context.ServiceContractGenerator.
GetCodeTypeReference
(typeof(FaultContractAttribute)));
879
CodeAttributeDeclaration attrDecl = new CodeAttributeDeclaration(context.Contract.ServiceContractGenerator.
GetCodeTypeReference
(typeof(TransactionFlowAttribute)));