1 write to context
System.ServiceModel (1)
System\ServiceModel\Description\ServiceContractGenerator.cs (1)
313
this.
context
= new ServiceContractGenerationContext(parent, contractDescription, contract, callbackContract);
23 references to context
System.ServiceModel (23)
System\ServiceModel\Description\ServiceContractGenerator.cs (23)
272
Fx.Assert(this.
context
!= null, "context was not initialized");
273
return this.
context
;
314
this.
context
.Namespace = codeNamespaceScope.CodeNamespace;
315
this.
context
.TypeFactory = this.typeFactory;
316
this.
context
.ContractTypeReference = contractReference;
317
this.
context
.DuplexCallbackTypeReference = callbackContractReference;
319
AddServiceContractAttribute(this.
context
);
325
CodeTypeDeclaration declaringType = isCallback ?
context
.DuplexCallbackType :
context
.ContractType;
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));
353
operationContext = new OperationContractGenerationContext(parent,
context
, operationDescription, declaringType, syncMethod, beginMethod, endMethod);
357
operationContext = new OperationContractGenerationContext(parent,
context
, operationDescription, declaringType, syncMethod);
366
operationContext = new OperationContractGenerationContext(parent,
context
, operationDescription, declaringType, syncMethod);
370
operationContext = new OperationContractGenerationContext(parent,
context
, operationDescription, declaringType, syncMethod, beginMethod, endMethod);
379
operationContext = new OperationContractGenerationContext(parent,
context
, operationDescription, declaringType, syncMethod, taskBasedAsyncMethod);
383
operationContext = new OperationContractGenerationContext(parent,
context
, operationDescription, declaringType, syncMethod, beginMethod, endMethod, taskBasedAsyncMethod);
388
operationContext.DeclaringTypeReference = operationDescription.IsServerInitiated() ?
context
.DuplexCallbackTypeReference :
context
.ContractTypeReference;
390
context
.Operations.Add(operationContext);
452
CodeAttributeDeclaration serviceOperationAttr = new CodeAttributeDeclaration(
context
.ServiceContractGenerator.GetCodeTypeReference(typeof(OperationContractAttribute)));