1 write to context
System.ServiceModel (1)
System\ServiceModel\Description\ServiceContractGenerator.cs (1)
313this.context = new ServiceContractGenerationContext(parent, contractDescription, contract, callbackContract);
23 references to context
System.ServiceModel (23)
System\ServiceModel\Description\ServiceContractGenerator.cs (23)
272Fx.Assert(this.context != null, "context was not initialized"); 273return this.context; 314this.context.Namespace = codeNamespaceScope.CodeNamespace; 315this.context.TypeFactory = this.typeFactory; 316this.context.ContractTypeReference = contractReference; 317this.context.DuplexCallbackTypeReference = callbackContractReference; 319AddServiceContractAttribute(this.context); 325CodeTypeDeclaration declaringType = isCallback ? context.DuplexCallbackType : context.ContractType; 343beginMethod.Parameters.Add(new CodeParameterDeclarationExpression(context.ServiceContractGenerator.GetCodeTypeReference(typeof(AsyncCallback)), Strings.AsyncCallbackArgName)); 344beginMethod.Parameters.Add(new CodeParameterDeclarationExpression(context.ServiceContractGenerator.GetCodeTypeReference(typeof(object)), Strings.AsyncStateArgName)); 345beginMethod.ReturnType = context.ServiceContractGenerator.GetCodeTypeReference(typeof(IAsyncResult)); 350endMethod.Parameters.Add(new CodeParameterDeclarationExpression(context.ServiceContractGenerator.GetCodeTypeReference(typeof(IAsyncResult)), Strings.AsyncResultArgName)); 353operationContext = new OperationContractGenerationContext(parent, context, operationDescription, declaringType, syncMethod, beginMethod, endMethod); 357operationContext = new OperationContractGenerationContext(parent, context, operationDescription, declaringType, syncMethod); 366operationContext = new OperationContractGenerationContext(parent, context, operationDescription, declaringType, syncMethod); 370operationContext = new OperationContractGenerationContext(parent, context, operationDescription, declaringType, syncMethod, beginMethod, endMethod); 379operationContext = new OperationContractGenerationContext(parent, context, operationDescription, declaringType, syncMethod, taskBasedAsyncMethod); 383operationContext = new OperationContractGenerationContext(parent, context, operationDescription, declaringType, syncMethod, beginMethod, endMethod, taskBasedAsyncMethod); 388operationContext.DeclaringTypeReference = operationDescription.IsServerInitiated() ? context.DuplexCallbackTypeReference : context.ContractTypeReference; 390context.Operations.Add(operationContext); 452CodeAttributeDeclaration serviceOperationAttr = new CodeAttributeDeclaration(context.ServiceContractGenerator.GetCodeTypeReference(typeof(OperationContractAttribute)));