11 writes to Type
System.ServiceModel (8)
System\ServiceModel\ComIntegration\ComPlusTypeLoader.cs (1)
357
partDescription.
Type
= bodyType;
System\ServiceModel\ComIntegration\DispatchProxy.cs (2)
127
msgDesc.Body.ReturnValue.
Type
= Type.GetType(msgDesc.Body.ReturnValue.BaseType);
158
param.
Type
= paramInfo.type;
System\ServiceModel\Description\MessageContractImporter.cs (1)
1243
bodyPart.
Type
= type;
System\ServiceModel\Description\TypeLoader.cs (3)
1211
parameterPart.
Type
= type;
1399
partDescription.
Type
= bodyType;
1427
headerDescription.
Type
= TypedHeaderManager.GetHeaderType(headerParameterType);
System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (1)
555
part.
Type
= (member.MemberType == MemberTypes.Property) ? ((PropertyInfo)member).PropertyType : ((FieldInfo)member).FieldType;
System.ServiceModel.Activities (3)
System\ServiceModel\Activities\MessageBuilder.cs (3)
173
Type
= type
204
Type
= argumentTypes[index]
229
message.Body.ReturnValue.
Type
= TypeHelper.VoidType;
106 references to Type
System.ServiceModel (45)
System\ServiceModel\Description\MessageContractExporter.cs (6)
948
Type dataContractType = DataContractSerializerOperationFormatter.GetSubstituteDataContractType(header.
Type
, out isQueryable);
950
ExportMessagePart(wsdlMessage, header, typeName, xsdType, true/*isOptional*/, IsTypeNullable(header.
Type
), false/*IsOperationInherited(operation)*/, true /*generateElement*/, null/*wrapperNamespace*/, null/*wrapperSequence*/, SchemaSet);
978
Type dataContractType = DataContractSerializerOperationFormatter.GetSubstituteDataContractType(description.Body.ReturnValue.
Type
, out isQueryable);
980
ExportMessagePart(wsdlMessage, description.Body.ReturnValue, typeName, xsdType, true/*isOptional*/, IsTypeNullable(description.Body.ReturnValue.
Type
), false/*isOperationInherited*/, dataContractFormatAttribute.Style != OperationFormatStyle.Rpc, description.Body.WrapperNamespace, wrapperSequence, SchemaSet);
986
Type dataContractType = DataContractSerializerOperationFormatter.GetSubstituteDataContractType(bodyPart.
Type
, out isQueryable);
988
ExportMessagePart(wsdlMessage, bodyPart, typeName, xsdType, true/*isOptional*/, IsTypeNullable(bodyPart.
Type
), false/*isOperationInherited*/, dataContractFormatAttribute.Style != OperationFormatStyle.Rpc, description.Body.WrapperNamespace, wrapperSequence, SchemaSet);
System\ServiceModel\Description\MessageDescription.cs (3)
162
return (Body.ReturnValue != null && Body.Parts.Count == 0 && Body.ReturnValue.
Type
== TypeOfUntypedMessage) ||
163
(Body.ReturnValue == null && Body.Parts.Count == 1 && Body.Parts[0].
Type
== TypeOfUntypedMessage);
171
return !IsTypedMessage && Body.Parts.Count == 0 && (Body.ReturnValue == null || Body.ReturnValue.
Type
== typeof(void));
System\ServiceModel\Description\MessageHeaderDescription.cs (1)
77
return isUnknownHeader || Multiple && (
Type
== typeof(XmlElement));
System\ServiceModel\Description\OperationGenerator.cs (3)
691
if (part.
Type
== typeof(System.IO.Stream))
743
if (setting.
Type
!= null)
744
return Context.ServiceContractGenerator.GetCodeTypeReference(setting.
Type
);
System\ServiceModel\Description\TypeLoader.cs (1)
1428
headerDescription.TypedHeader = (headerParameterType != headerDescription.
Type
);
System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (3)
531
Type bodyObjectType = bodyPart.
Type
;
543
Type bodyObjectType = bodyPart.
Type
;
943
return GetXmlReflectionMember(memberName, elementName, ns, part.
Type
, additionalAttributesProvider, part.Multiple, isEncoded, isWrapped);
System\ServiceModel\Dispatcher\DataContractSerializerOperationFormatter.cs (9)
137
ValidateDataContractType(headerDescription.
Type
);
186
bool isXmlElement = headerDescription.
Type
== typeof(XmlElement);
297
item = TypedHeaderManager.Create(headerDescription.
Type
, dataValue, headers[i].MustUnderstand, headers[i].Relay, headers[i].Actor);
312
multipleHeaderValues[headerDescription.Index] = new KeyValuePair<System.Type, System.Collections.ArrayList>(headerDescription.TypedHeader ? TypedHeaderManager.GetMessageHeaderType(headerDescription.
Type
) : headerDescription.
Type
, new ArrayList());
328
dataValue = TypedHeaderManager.Create(unknownHeaderDescription.
Type
, dataValue, headers[i].MustUnderstand, headers[i].Relay, headers[i].Actor);
352
Type dataContractType = DataContractSerializerOperationFormatter.GetSubstituteDataContractType(headerDescription.
Type
, out isQueryable);
434
return items.ToArray(part.Description.
Type
);
548
this.contractType = DataContractSerializerOperationFormatter.GetSubstituteDataContractType(description.
Type
, out this.isQueryable);
System\ServiceModel\Dispatcher\OperationFormatter.cs (2)
468
parameterValue = TypedHeaderManager.GetContent(headerDescription.
Type
, parameterValue, out mustUnderstand, out relay, out actor);
474
return (returnValue != null) && (returnValue.
Type
!= typeof(void));
System\ServiceModel\Dispatcher\PrimitiveOperationFormatter.cs (6)
83
if (responseMessage.Body.ReturnValue != null && responseMessage.Body.ReturnValue.
Type
!= typeof(void))
271
Type type = part.
Type
;
337
Type type = bodyDescription.
Type
;
681
if (description.
Type
.IsArray)
684
this.typeCode = Type.GetTypeCode(description.
Type
.GetElementType());
689
this.typeCode = Type.GetTypeCode(description.
Type
);
System\ServiceModel\Dispatcher\StreamFormatter.cs (4)
185
if (messageDescription.Body.ReturnValue != null && messageDescription.Body.ReturnValue.
Type
== typeof(Stream))
189
if (part.
Type
== typeof(Stream))
200
if (messageDescription.Body.ReturnValue.
Type
== typeof(Stream))
206
if (messageDescription.Body.Parts[0].
Type
== typeof(Stream))
System\ServiceModel\Dispatcher\XmlSerializerOperationFormatter.cs (6)
255
unknownHeader = TypedHeaderManager.Create(unknownHeaderDescription.
Type
, unknownHeader, header.MustUnderstand, header.Relay, header.Actor);
349
object bodyObject = Activator.CreateInstance(messageDescription.Body.Parts[0].
Type
);
447
Array tArray = Array.CreateInstance(headerDescription.
Type
, messageHeaderOfTArray.Length);
507
object[] messageHeaderOfTArray = (object[])Array.CreateInstance(TypedHeaderManager.GetMessageHeaderType(headerDescription.
Type
), messageHeaderOfTAttributes.Count);
512
messageHeaderOfTArray[i] = TypedHeaderManager.Create(headerDescription.
Type
, headerValues.GetValue(i),
520
return TypedHeaderManager.Create(headerDescription.
Type
, headerValue,
System\ServiceModel\MsmqIntegration\MsmqIntegrationValidationBehavior.cs (1)
105
Type type = message.Body.Parts[0].
Type
;
System.ServiceModel.Activities (36)
System\ServiceModel\Activities\ContractValidationHelper.cs (22)
236
else if (!targetMessage.Body.ReturnValue.
Type
.IsAssignableFrom(typeof(System.ServiceModel.Channels.Message)))
238
Constraint.AddValidationError(context, new ValidationError(SR2.FirstParameterDoesnotMatchTheReturnValue(declaredMessageType.FullName, targetMessage.Body.ReturnValue.
Type
.Name, operation.Name, operation.DeclaringContract.Name)));
253
if (!targetMessage.Body.Parts[0].
Type
.IsAssignableFrom(typeof(System.ServiceModel.Channels.Message)))
255
Constraint.AddValidationError(context, new ValidationError(SR2.MessageTypeMismatch(targetMessage.Body.Parts[0].
Type
.FullName, operation.Name, operation.DeclaringContract.Name)));
324
if (isResponse && targetMessage.Body.ReturnValue != null && targetMessage.Body.ReturnValue.
Type
!= TypeHelper.VoidType)
368
if (declaredMessageType != targetPart.
Type
)
372
Constraint.AddValidationError(context, new ValidationError(SR2.ParameterTypeMismatch(declaredMessageType.FullName, targetPart.
Type
.FullName, operation.Name, operation.DeclaringContract.Name)));
376
Constraint.AddValidationError(context, new ValidationError(SR2.ParameterTypeMismatch(TypeHelper.VoidType.FullName, targetPart.
Type
.FullName, operation.Name, operation.DeclaringContract.Name)));
412
bool targetHasReturnValue = isResponse && targetMessageBody.ReturnValue != null && targetMessageBody.ReturnValue.
Type
!= TypeHelper.VoidType;
418
if (argument != null && argument.ArgumentType != targetMessageBody.ReturnValue.
Type
)
420
Constraint.AddValidationError(context, new ValidationError(SR2.FirstParameterDoesnotMatchTheReturnValue(argument.ArgumentType.FullName, targetMessageBody.ReturnValue.
Type
.FullName, targetOperation.Name, targetOperation.DeclaringContract.Name)));
431
Constraint.AddValidationError(context, new ValidationError(SR2.ReturnValueMissing(targetMessageBody.ReturnValue.
Type
.FullName, targetOperation.Name, targetOperation.DeclaringContract.Name)));
442
if (argument != null && argument.ArgumentType != targetPart.
Type
)
444
Constraint.AddValidationError(context, new ValidationError(SR2.ParameterTypeMismatch(targetPart.Name, targetPart.
Type
.FullName, targetOperation.Name, targetOperation.DeclaringContract.Name)));
502
if (!messagePart.
Type
.IsAssignableFrom(typeof(System.ServiceModel.Channels.Message)))
522
if ((message.Body.ReturnValue != null && message.Body.ReturnValue.
Type
.IsDefined(typeof(MessageContractAttribute), false))
523
|| (message.Body.ReturnValue != null && message.Body.ReturnValue.
Type
.IsAssignableFrom(typeof(System.ServiceModel.Channels.Message))))
529
if (operation.Messages[1].MessageType != null || operation.Messages[1].Body.ReturnValue.
Type
.IsAssignableFrom(typeof(System.ServiceModel.Channels.Message)))
566
if (message.Body.ReturnValue != null && message.Body.ReturnValue.
Type
!= typeof(void))
568
if (!message.Body.ReturnValue.
Type
.IsAssignableFrom(typeof(System.ServiceModel.Channels.Message)))
591
if (!messagePart.
Type
.IsAssignableFrom(typeof(System.ServiceModel.Channels.Message)))
613
&& operation.Messages[0].Body.Parts[0].
Type
.IsAssignableFrom(typeof(System.ServiceModel.Channels.Message)))
System\ServiceModel\Activities\Receive.cs (6)
543
if (!messagePart.
Type
.IsAssignableFrom(typeof(System.ServiceModel.Channels.Message)))
569
Argument outArgument = OutArgument.Create(messagePart.
Type
, ArgumentDirection.Out);
587
content.DeclaredMessageType = message.Body.Parts[0].
Type
;
599
if ((message.Body.ReturnValue != null && message.Body.ReturnValue.
Type
.IsDefined(typeof(MessageContractAttribute), false))
600
|| (message.Body.ReturnValue != null && message.Body.ReturnValue.
Type
.IsAssignableFrom(typeof(System.ServiceModel.Channels.Message))))
606
if (operation.Messages[1].MessageType != null || operation.Messages[1].Body.ReturnValue.
Type
.IsAssignableFrom(typeof(System.ServiceModel.Channels.Message)))
System\ServiceModel\Activities\SendReply.cs (8)
288
if (message.Body.ReturnValue != null && message.Body.ReturnValue.
Type
!= typeof(void))
290
if (!message.Body.ReturnValue.
Type
.IsAssignableFrom(typeof(System.ServiceModel.Channels.Message)))
313
if (!messagePart.
Type
.IsAssignableFrom(typeof(System.ServiceModel.Channels.Message)))
330
&& message.Body.ReturnValue.
Type
!= typeof(void))
332
Argument returnArgument = InArgument.Create(message.Body.ReturnValue.
Type
, ArgumentDirection.In);
340
Argument inArgument = InArgument.Create(messagePart.
Type
, ArgumentDirection.In);
354
content.DeclaredMessageType = message.Body.ReturnValue.
Type
;
381
&& operation.Messages[0].Body.Parts[0].
Type
.IsAssignableFrom(typeof(System.ServiceModel.Channels.Message)))
System.ServiceModel.Web (25)
System\ServiceModel\Description\WCFServiceClientProxyGenerator.cs (3)
121
Type paramType = ReplaceMessageWithObject(messagePart.
Type
);
133
if (responseMessage.Body.ReturnValue != null && responseMessage.Body.ReturnValue.
Type
!= null)
136
serviceData.ProcessClientType(ReplaceMessageWithObject(responseMessage.Body.ReturnValue.
Type
), false, true);
System\ServiceModel\Description\WebHttpBehavior.cs (12)
434
return (message.Body.ReturnValue != null && message.Body.Parts.Count == 0 && message.Body.ReturnValue.
Type
== typeof(Message)) ||
435
(message.Body.ReturnValue == null && message.Body.Parts.Count == 1 && message.Body.Parts[0].
Type
== typeof(Message));
959
if (message.Body.Parts.Count == 1 && message.Body.Parts[0].
Type
!= typeof(void))
961
type = message.Body.Parts[0].
Type
;
971
if (message.Body.ReturnValue != null && message.Body.ReturnValue.
Type
!= typeof(void))
973
type = message.Body.ReturnValue.
Type
;
991
if (typeof(Stream) == message.Body.Parts[i].
Type
)
993
type = message.Body.Parts[i].
Type
;
1010
if (typeof(Stream) == message.Body.Parts[i].
Type
)
1015
if (message.Body.ReturnValue != null && typeof(Stream) == message.Body.ReturnValue.
Type
)
1022
type = message.Body.ReturnValue.
Type
;
1248
if (description.
Type
== typeof(Stream))
System\ServiceModel\Dispatcher\HelpPage.cs (2)
238
return (od.Messages[1].Body.ReturnValue.
Type
);
266
return parts.First().
Type
;
System\ServiceModel\Dispatcher\UriTemplateClientFormatter.cs (4)
165
if (mpd.
Type
!= typeof(string))
180
if (!qsc.CanConvert(mpd.
Type
))
183
SR2.GetString(SR2.UriTemplateQueryVarMustBeConvertible, operationDescription.XmlName.DecodedName, contractName, parameterName, mpd.
Type
, qsc.GetType().Name)));
185
queryMapping.Add(i, new KeyValuePair<string, Type>(parameterName, mpd.
Type
));
System\ServiceModel\Web\WebServiceHost.cs (4)
295
if (IsStreamPart(message.Body.Parts[0].
Type
))
300
else if (IsVoidPart(message.Body.Parts[0].
Type
))
321
if (message.Body.ReturnValue == null || IsVoidPart(message.Body.ReturnValue.
Type
))
325
else if (IsStreamPart(message.Body.ReturnValue.
Type
))