1 write to Context
System.ServiceModel (1)
System\ServiceModel\Description\OperationGenerator.cs (1)
125this.Context = context;
26 references to Context
System.ServiceModel (26)
System\ServiceModel\Description\OperationGenerator.cs (26)
150this.Method = this.Context.SyncMethod; 151this.EndMethod = this.Context.SyncMethod; 158this.Method = this.Context.BeginMethod; 159this.EndMethod = this.Context.EndMethod; 181if (this.Method == this.Context.TaskMethod) 198this.WrappedBodyTypeGenerator.ValidateForParameterMode(this.Context.Operation); 224if (this.Context.IsAsync) 244throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ParameterModeException(SR.GetString(SR.SFxCannotImportAsParameters_Message, this.Context.Operation.CodeName))); 253this.WrappedBodyTypeGenerator.ValidateForParameterMode(this.Context.Operation); 281CodeNamespace ns = this.Context.ServiceContractGenerator.NamespaceManager.EnsureNamespace(this.ContractNS); 304if (TypedMessageHelper.FindGeneratedTypedMessage(this.Context.Contract, message, out typedMessageRef)) 313CodeTypeDeclaration typedMessageDecl = Context.Contract.TypeFactory.CreateClassType(); 317TypedMessageHelper.AddGeneratedTypedMessage(this.Context.Contract, message, typedMessageRef); 320WrapTypedMessage(ns, typedMessageDecl.Name, message, isReply, this.Context.IsInherited, hideFromEditor); 382this.Method.Parameters.Insert(0, new CodeParameterDeclarationExpression(Context.ServiceContractGenerator.GetCodeTypeReference((typeof(Message))), "request")); 384this.EndMethod.ReturnType = Context.ServiceContractGenerator.GetCodeTypeReference(typeof(Message)); 592CodeTypeDeclaration wrapperTypeDecl = Context.Contract.TypeFactory.CreateClassType(); 692type = Context.ServiceContractGenerator.GetCodeTypeReference(typeof(byte[])); 744return Context.ServiceContractGenerator.GetCodeTypeReference(setting.Type); 907throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ParameterModeException(SR.GetString(SR.SFxCannotImportAsParameters_Bare, parent.Context.Operation.CodeName))); 932parent.Context.Contract.ServiceContractGenerator.Errors.Add(new MetadataConversionError(SR.GetString(SR.SFxCannotImportAsParameters_HeadersAreIgnoredInEncoded, parent.Request.MessageName), true/*isWarning*/)); 941parent.Context.Contract.ServiceContractGenerator.Errors.Add(new MetadataConversionError(SR.GetString(SR.SFxCannotImportAsParameters_HeadersAreIgnoredInEncoded, parent.Response.MessageName), true/*isWarning*/)); 956this.Method = this.Context.TaskMethod; 957this.EndMethod = this.Context.TaskMethod; 958this.DefaultName = this.Context.SyncMethod.Name; 969taskReturnType = new CodeTypeReference(this.Context.ServiceContractGenerator.GetCodeTypeReference(ServiceReflector.taskTResultType).BaseType, resultType);