3 writes to Method
System.ServiceModel (3)
System\ServiceModel\Description\OperationGenerator.cs (3)
150this.Method = this.Context.SyncMethod; 158this.Method = this.Context.BeginMethod; 956this.Method = this.Context.TaskMethod;
13 references to Method
System.ServiceModel (13)
System\ServiceModel\Description\OperationGenerator.cs (13)
152this.DefaultName = this.Method.Name; 160this.DefaultName = this.Method.Name.Substring(5); 181if (this.Method == this.Context.TaskMethod) 183this.Method.Comments.Add(new CodeCommentStatement(SR.GetString(SR.SFxCodeGenWarning, SR.GetString(SR.SFxCannotImportAsParameters_OutputParameterAndTask)))); 209methodParameters = new CodeParameterDeclarationExpressionCollection(this.Method.Parameters); 220CodeMemberMethod method = this.Method; 255ParameterizedMethodGenerator generator = new ParameterizedMethodGenerator(this.Method, this.EndMethod); 286this.Method.Parameters.Insert(0, new CodeParameterDeclarationExpression(typedReqMessageRef, "request")); 382this.Method.Parameters.Insert(0, new CodeParameterDeclarationExpression(Context.ServiceContractGenerator.GetCodeTypeReference((typeof(Message))), "request")); 392CustomAttributeHelper.FindOrCreateAttributeDeclaration<OperationContractAttribute>(this.Method.CustomAttributes), OperationContractAttribute.ActionPropertyName, this.Request.Action); 397CustomAttributeHelper.FindOrCreateAttributeDeclaration<OperationContractAttribute>(this.Method.CustomAttributes), OperationContractAttribute.ReplyActionPropertyName, this.Response.Action); 961CodeTypeReference resultType = this.Method.ReturnType; 972this.Method.ReturnType = taskReturnType;