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