84 references to ServiceReflector
System.ServiceModel (84)
System\ServiceModel\Channels\ServiceChannelProxy.cs (1)
239
if (operation.TaskTResult ==
ServiceReflector
.VoidType)
System\ServiceModel\ComIntegration\ComPlusTypeLoader.cs (5)
174
XmlName operationName = new XmlName(
ServiceReflector
.GetLogicalName(methodInfo));
177
if (
ServiceReflector
.IsBegin(methodInfo) ||
ServiceReflector
.IsTask(methodInfo))
254
ParameterInfo[] parameters =
ServiceReflector
.GetInputParameters(methodInfo, false);
274
ParameterInfo[] parameters =
ServiceReflector
.GetOutputParameters(methodInfo, false);
System\ServiceModel\ComIntegration\ComPlusTypeValidator.cs (1)
41
object[] attributes = System.ServiceModel.Description.
ServiceReflector
.GetCustomAttributes(attributeProvider, typeof(MarshalAsAttribute), true);
System\ServiceModel\ComIntegration\TypeCacheManager.cs (1)
243
object[] attrs = System.ServiceModel.Description.
ServiceReflector
.GetCustomAttributes(attrProvider, typeof(CoClassAttribute), false);
System\ServiceModel\Description\OperationGenerator.cs (3)
963
if (resultType.BaseType ==
ServiceReflector
.VoidType.FullName)
965
taskReturnType = new CodeTypeReference(
ServiceReflector
.taskType);
969
taskReturnType = new CodeTypeReference(this.Context.ServiceContractGenerator.GetCodeTypeReference(
ServiceReflector
.taskTResultType).BaseType, resultType);
System\ServiceModel\Description\ServiceContractGenerator.cs (3)
342
beginMethod.Name =
ServiceReflector
.BeginMethodNamePrefix + syncMethodName;
349
endMethod.Name =
ServiceReflector
.EndMethodNamePrefix + syncMethodName;
375
CodeMemberMethod taskBasedAsyncMethod = new CodeMemberMethod { Name = syncMethodName +
ServiceReflector
.AsyncMethodNameSuffix };
System\ServiceModel\Description\ServiceDescription.cs (1)
217
foreach (IServiceBehavior behaviorAttribute in
ServiceReflector
.GetCustomAttributes(currentServiceType, typeof(IServiceBehavior)))
System\ServiceModel\Description\ServiceReflector.cs (3)
409
if (
ServiceReflector
.GetSingleAttribute<ServiceContractAttribute>(service) != null)
422
if (
ServiceReflector
.GetSingleAttribute<ServiceContractAttribute>(t) != null)
429
if (
ServiceReflector
.GetSingleAttribute<ServiceContractAttribute>(service) != null)
System\ServiceModel\Description\TaskOperationDescriptionValidator.cs (3)
57
if ((parameterType ==
ServiceReflector
.CancellationTokenType) ||
58
(parameterType.IsGenericType && parameterType.GetGenericTypeDefinition() ==
ServiceReflector
.IProgressType))
67
if (
ServiceReflector
.HasOutputParameters(method, false))
System\ServiceModel\Description\TypeLoader.cs (49)
70
Type actualContractType =
ServiceReflector
.GetContractTypeAndAttribute(contractType, out actualContractAttribute);
109
if (
ServiceReflector
.GetSingleAttribute<ServiceContractAttribute>(service) != null)
133
if (
ServiceReflector
.GetSingleAttribute<ServiceContractAttribute>(aParentType) == null)
138
Type operationContractProviderType =
ServiceReflector
.GetOperationContractProviderType(methodInfo);
214
ServiceContractAttribute contractAttr =
ServiceReflector
.GetRequiredSingleAttribute<ServiceContractAttribute>(reflectionInfo.iface);
319
object[] ifaceAttributes =
ServiceReflector
.GetCustomAttributes(interfaceType, typeof(IContractBehavior), false);
334
foreach (IContractBehavior iContractBehavior in
ServiceReflector
.GetCustomAttributes(currentType, typeof(IContractBehavior), false))
349
object[] customAttributes =
ServiceReflector
.GetCustomAttributes(reflectionInfo.iface, typeof(ServiceKnownTypeAttribute), false);
362
customAttributes =
ServiceReflector
.GetCustomAttributes(reflectionInfo.callbackiface, typeof(ServiceKnownTypeAttribute), false);
476
object[] methodAttributes =
ServiceReflector
.GetCustomAttributes(method, typeof(IOperationBehavior), false);
537
foreach (IEndpointBehavior behaviorAttribute in
ServiceReflector
.GetCustomAttributes(implementationType, typeof(IEndpointBehavior), false))
548
foreach (IContractBehavior behaviorAttribute in
ServiceReflector
.GetCustomAttributes(implementationType, typeof(IContractBehavior), false))
633
object[] attrs =
ServiceReflector
.GetCustomAttributes(methodInfo, typeof(OperationBehaviorAttribute), false);
640
ServiceReflector
.ValidateParameterMetadata(methodInfo);
665
List<Type> types =
ServiceReflector
.GetInheritedContractTypes(contractType);
669
ServiceContractAttribute inheritedContractAttr =
ServiceReflector
.GetRequiredSingleAttribute<ServiceContractAttribute>(inheritedContractType);
716
List<Type> types =
ServiceReflector
.GetInheritedContractTypes(contractType);
721
ServiceContractAttribute inheritedContractAttr =
ServiceReflector
.GetRequiredSingleAttribute<ServiceContractAttribute>(inheritedContractType);
764
return
ServiceReflector
.GetSingleAttribute<XmlSerializerFormatAttribute>(attrProvider, formatterAttributes);
768
return
ServiceReflector
.GetSingleAttribute<DataContractFormatAttribute>(attrProvider, formatterAttributes);
801
OperationContractAttribute opAttr =
ServiceReflector
.GetOperationContractAttribute(methodInfo);
807
if (
ServiceReflector
.HasEndMethodShape(methodInfo))
815
bool isTask =
ServiceReflector
.IsTask(methodInfo, out taskTResult);
816
bool isAsync = isTask ? false :
ServiceReflector
.IsBegin(opAttr, methodInfo);
818
XmlName operationName = NamingHelper.GetOperationName(
ServiceReflector
.GetLogicalName(methodInfo, isAsync, isTask), opAttr.Name);
855
newOp.HasNoDisposableParameters =
ServiceReflector
.HasNoDisposableParameters(methodInfo);
915
operationDescription.HasNoDisposableParameters =
ServiceReflector
.HasNoDisposableParameters(methodInfo);
924
object[] methodAttributes =
ServiceReflector
.GetCustomAttributes(methodInfo, typeof(FaultContractAttribute), false);
939
methodAttributes =
ServiceReflector
.GetCustomAttributes(methodInfo, typeof(ServiceKnownTypeAttribute), false);
984
outputMethod =
ServiceReflector
.GetEndMethod(methodInfo);
1006
if ((!isTask && outputMethod.ReturnType !=
ServiceReflector
.VoidType) || (isTask && taskTResult !=
ServiceReflector
.VoidType) ||
1007
ServiceReflector
.HasOutputParameters(outputMethod, isAsync))
1082
ParameterInfo[] parameters =
ServiceReflector
.GetInputParameters(methodInfo, isAsync);
1108
ParameterInfo[] parameters =
ServiceReflector
.GetOutputParameters(methodInfo, isAsync);
1207
MessageParameterAttribute paramAttr =
ServiceReflector
.GetSingleAttribute<MessageParameterAttribute>(attrProvider);
1230
MessageContractAttribute messageContractAttribute =
ServiceReflector
.GetSingleAttribute<MessageContractAttribute>(typedMessageType);
1255
MessageContractAttribute mca =
ServiceReflector
.GetRequiredSingleAttribute<MessageContractAttribute>(baseType);
1376
MessageBodyMemberAttribute bodyAttr =
ServiceReflector
.GetSingleAttribute<MessageBodyMemberAttribute>(attrProvider, messageContractMemberAttributes);
1412
MessageHeaderAttribute headerAttr =
ServiceReflector
.GetRequiredSingleAttribute<MessageHeaderAttribute>(attrProvider, messageContractMemberAttributes);
1460
MessagePropertyAttribute attr =
ServiceReflector
.GetSingleAttribute<MessagePropertyAttribute>(attrProvider, messageContractMemberAttributes);
1546
this.syncInputs =
ServiceReflector
.GetInputParameters(this.syncOperation.SyncMethod, false);
1547
this.asyncInputs =
ServiceReflector
.GetInputParameters(this.asyncOperation.BeginMethod, true);
1548
this.syncOutputs =
ServiceReflector
.GetOutputParameters(this.syncOperation.SyncMethod, false);
1549
this.asyncOutputs =
ServiceReflector
.GetOutputParameters(this.asyncOperation.EndMethod, true);
1690
this.syncInputs =
ServiceReflector
.GetInputParameters(this.syncOperation.SyncMethod, false);
1691
this.taskInputs =
ServiceReflector
.GetInputParameters(this.taskOperation.TaskMethod, false);
1808
this.taskInputs =
ServiceReflector
.GetInputParameters(this.taskOperation.TaskMethod, false);
1809
this.asyncInputs =
ServiceReflector
.GetInputParameters(this.asyncOperation.BeginMethod, true);
System\ServiceModel\Description\WsdlImporter.cs (1)
820
= (WsdlConfigNS.XmlFormatExtensionAttribute[])
ServiceReflector
.GetCustomAttributes(extension.GetType(),
System\ServiceModel\Dispatcher\AsyncMethodInvoker.cs (3)
102
StartOperationInvokePerformanceCounters(this.beginMethod.Name.Substring(
ServiceReflector
.BeginMethodNamePrefix.Length));
165
StopOperationInvokePerformanceCounters(callFailed, callFaulted, endMethod.Name.Substring(
ServiceReflector
.EndMethodNamePrefix.Length));
243
StopOperationInvokePerformanceCounters(callFailed, callFaulted, this.endMethod.Name.Substring(
ServiceReflector
.EndMethodNamePrefix.Length));
System\ServiceModel\Dispatcher\InvokerUtil.cs (3)
269
if (
ServiceReflector
.FlowsIn(parameters[i]))
298
if (
ServiceReflector
.FlowsIn(parameters[i]))
343
if (
ServiceReflector
.FlowsOut(parameters[i]))
System\ServiceModel\Dispatcher\ProxyOperationRuntime.cs (5)
74
this.inParams =
ServiceReflector
.GetInputParameters(this.beginMethod, true);
77
this.outParams =
ServiceReflector
.GetOutputParameters(this.syncMethod, false);
83
this.endOutParams =
ServiceReflector
.GetOutputParameters(operation.EndMethod, true);
88
this.inParams =
ServiceReflector
.GetInputParameters(this.syncMethod, false);
89
this.outParams =
ServiceReflector
.GetOutputParameters(this.syncMethod, false);
System\ServiceModel\Dispatcher\TaskMethodInvoker.cs (1)
39
if (taskType !=
ServiceReflector
.VoidType)
System\ServiceModel\ServiceHost.cs (1)
1986
List<Type> interfaces =
ServiceReflector
.GetInterfaces(this.serviceType);