1 write to _context
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceContractGenerator.cs (1)
259
_context
= new ServiceContractGenerationContext(_parent, contractDescription, contract, callbackContract);
23 references to _context
dotnet-svcutil-lib (23)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceContractGenerator.cs (23)
218
Fx.Assert(
_context
!= null, "context was not initialized");
219
return
_context
;
260
_context
.Namespace = codeNamespaceScope.CodeNamespace;
261
_context
.TypeFactory = _typeFactory;
262
_context
.ContractTypeReference = contractReference;
263
_context
.DuplexCallbackTypeReference = callbackContractReference;
265
AddServiceContractAttribute(
_context
);
271
CodeTypeDeclaration declaringType = isCallback ?
_context
.DuplexCallbackType :
_context
.ContractType;
289
beginMethod.Parameters.Add(new CodeParameterDeclarationExpression(
_context
.ServiceContractGenerator.GetCodeTypeReference(typeof(AsyncCallback)), Strings.AsyncCallbackArgName));
290
beginMethod.Parameters.Add(new CodeParameterDeclarationExpression(
_context
.ServiceContractGenerator.GetCodeTypeReference(typeof(object)), Strings.AsyncStateArgName));
291
beginMethod.ReturnType =
_context
.ServiceContractGenerator.GetCodeTypeReference(typeof(IAsyncResult));
296
endMethod.Parameters.Add(new CodeParameterDeclarationExpression(
_context
.ServiceContractGenerator.GetCodeTypeReference(typeof(IAsyncResult)), Strings.AsyncResultArgName));
299
operationContext = new OperationContractGenerationContext(_parent,
_context
, operationDescription, declaringType, syncMethod, beginMethod, endMethod);
303
operationContext = new OperationContractGenerationContext(_parent,
_context
, operationDescription, declaringType, syncMethod);
312
operationContext = new OperationContractGenerationContext(_parent,
_context
, operationDescription, declaringType, syncMethod);
316
operationContext = new OperationContractGenerationContext(_parent,
_context
, operationDescription, declaringType, syncMethod, beginMethod, endMethod);
325
operationContext = new OperationContractGenerationContext(_parent,
_context
, operationDescription, declaringType, syncMethod, taskBasedAsyncMethod);
329
operationContext = new OperationContractGenerationContext(_parent,
_context
, operationDescription, declaringType, syncMethod, beginMethod, endMethod, taskBasedAsyncMethod);
334
operationContext.DeclaringTypeReference = operationDescription.IsServerInitiated() ?
_context
.DuplexCallbackTypeReference :
_context
.ContractTypeReference;
336
_context
.Operations.Add(operationContext);
398
CodeAttributeDeclaration serviceOperationAttr = new CodeAttributeDeclaration(
_context
.ServiceContractGenerator.GetCodeTypeReference(typeof(OperationContractAttribute)));