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