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)
218Fx.Assert(_context != null, "context was not initialized"); 219return _context; 260_context.Namespace = codeNamespaceScope.CodeNamespace; 261_context.TypeFactory = _typeFactory; 262_context.ContractTypeReference = contractReference; 263_context.DuplexCallbackTypeReference = callbackContractReference; 265AddServiceContractAttribute(_context); 271CodeTypeDeclaration declaringType = isCallback ? _context.DuplexCallbackType : _context.ContractType; 289beginMethod.Parameters.Add(new CodeParameterDeclarationExpression(_context.ServiceContractGenerator.GetCodeTypeReference(typeof(AsyncCallback)), Strings.AsyncCallbackArgName)); 290beginMethod.Parameters.Add(new CodeParameterDeclarationExpression(_context.ServiceContractGenerator.GetCodeTypeReference(typeof(object)), Strings.AsyncStateArgName)); 291beginMethod.ReturnType = _context.ServiceContractGenerator.GetCodeTypeReference(typeof(IAsyncResult)); 296endMethod.Parameters.Add(new CodeParameterDeclarationExpression(_context.ServiceContractGenerator.GetCodeTypeReference(typeof(IAsyncResult)), Strings.AsyncResultArgName)); 299operationContext = new OperationContractGenerationContext(_parent, _context, operationDescription, declaringType, syncMethod, beginMethod, endMethod); 303operationContext = new OperationContractGenerationContext(_parent, _context, operationDescription, declaringType, syncMethod); 312operationContext = new OperationContractGenerationContext(_parent, _context, operationDescription, declaringType, syncMethod); 316operationContext = new OperationContractGenerationContext(_parent, _context, operationDescription, declaringType, syncMethod, beginMethod, endMethod); 325operationContext = new OperationContractGenerationContext(_parent, _context, operationDescription, declaringType, syncMethod, taskBasedAsyncMethod); 329operationContext = new OperationContractGenerationContext(_parent, _context, operationDescription, declaringType, syncMethod, beginMethod, endMethod, taskBasedAsyncMethod); 334operationContext.DeclaringTypeReference = operationDescription.IsServerInitiated() ? _context.DuplexCallbackTypeReference : _context.ContractTypeReference; 336_context.Operations.Add(operationContext); 398CodeAttributeDeclaration serviceOperationAttr = new CodeAttributeDeclaration(_context.ServiceContractGenerator.GetCodeTypeReference(typeof(OperationContractAttribute)));