64 references to ServiceReflector
dotnet-svcutil-lib (64)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannelProxy.cs (1)
161if (operation.TaskTResult == ServiceReflector.VoidType)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (3)
955if (resultType.BaseType == ServiceReflector.VoidType.FullName) 957taskReturnType = new CodeTypeReference(ServiceReflector.taskType); 961taskReturnType = new CodeTypeReference(_context.ServiceContractGenerator.GetCodeTypeReference(ServiceReflector.taskTResultType).BaseType, resultType);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceContractGenerator.cs (3)
288beginMethod.Name = ServiceReflector.BeginMethodNamePrefix + syncMethodName; 295endMethod.Name = ServiceReflector.EndMethodNamePrefix + syncMethodName; 321CodeMemberMethod taskBasedAsyncMethod = new CodeMemberMethod { Name = syncMethodName + ServiceReflector.AsyncMethodNameSuffix };
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceReflector.cs (3)
418if (ServiceReflector.GetSingleAttribute<ServiceContractAttribute>(service) != null) 431if (ServiceReflector.GetSingleAttribute<ServiceContractAttribute>(t) != null) 438if (ServiceReflector.GetSingleAttribute<ServiceContractAttribute>(service) != null)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\TypeLoader.cs (47)
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); 307object[] ifaceAttributes = ServiceReflector.GetCustomAttributes(interfaceType, typeof(IContractBehavior), false); 321foreach (IContractBehavior iContractBehavior in ServiceReflector.GetCustomAttributes(currentType, typeof(IContractBehavior), false)) 330object[] customAttributes = ServiceReflector.GetCustomAttributes(reflectionInfo.iface, typeof(ServiceKnownTypeAttribute), false); 343customAttributes = ServiceReflector.GetCustomAttributes(reflectionInfo.callbackiface, typeof(ServiceKnownTypeAttribute), false); 453object[] methodAttributes = ServiceReflector.GetCustomAttributes(method, typeof(IOperationBehavior), false); 595foreach (IEndpointBehavior behaviorAttribute in ServiceReflector.GetCustomAttributes(implementationType, typeof(IEndpointBehavior), false)) 606foreach (IContractBehavior behaviorAttribute in ServiceReflector.GetCustomAttributes(implementationType, typeof(IContractBehavior), false)) 689ServiceReflector.ValidateParameterMetadata(methodInfo); 714List<Type> types = ServiceReflector.GetInheritedContractTypes(contractType); 718ServiceContractAttribute inheritedContractAttr = ServiceReflector.GetRequiredSingleAttribute<ServiceContractAttribute>(inheritedContractType); 765List<Type> types = ServiceReflector.GetInheritedContractTypes(contractType); 770ServiceContractAttribute inheritedContractAttr = ServiceReflector.GetRequiredSingleAttribute<ServiceContractAttribute>(inheritedContractType); 813return ServiceReflector.GetSingleAttribute<XmlSerializerFormatAttribute>(attrProvider, s_formatterAttributes); 817return ServiceReflector.GetSingleAttribute<DataContractFormatAttribute>(attrProvider, s_formatterAttributes); 850OperationContractAttribute opAttr = ServiceReflector.GetOperationContractAttribute(methodInfo); 856if (ServiceReflector.HasEndMethodShape(methodInfo)) 864bool isTask = ServiceReflector.IsTask(methodInfo, out taskTResult); 865bool isAsync = isTask ? false : ServiceReflector.IsBegin(opAttr, methodInfo); 867XmlName operationName = NamingHelper.GetOperationName(ServiceReflector.GetLogicalName(methodInfo, isAsync, isTask), opAttr.Name); 904newOp.HasNoDisposableParameters = ServiceReflector.HasNoDisposableParameters(methodInfo); 963operationDescription.HasNoDisposableParameters = ServiceReflector.HasNoDisposableParameters(methodInfo); 972object[] methodAttributes = ServiceReflector.GetCustomAttributes(methodInfo, typeof(FaultContractAttribute), false); 987methodAttributes = ServiceReflector.GetCustomAttributes(methodInfo, typeof(ServiceKnownTypeAttribute), false); 1032outputMethod = ServiceReflector.GetEndMethod(methodInfo); 1054if ((!isTask && outputMethod.ReturnType != ServiceReflector.VoidType) || (isTask && taskTResult != ServiceReflector.VoidType) || 1055ServiceReflector.HasOutputParameters(outputMethod, isAsync)) 1130ParameterInfo[] parameters = ServiceReflector.GetInputParameters(methodInfo, isAsync); 1156ParameterInfo[] parameters = ServiceReflector.GetOutputParameters(methodInfo, isAsync); 1255MessageParameterAttribute paramAttr = ServiceReflector.GetSingleAttribute<MessageParameterAttribute>(attrProvider); 1276MessageContractAttribute messageContractAttribute = ServiceReflector.GetSingleAttribute<MessageContractAttribute>(typedMessageType); 1301MessageContractAttribute mca = ServiceReflector.GetRequiredSingleAttribute<MessageContractAttribute>(baseType); 1421MessageBodyMemberAttribute bodyAttr = ServiceReflector.GetSingleAttribute<MessageBodyMemberAttribute>(attrProvider, s_messageContractMemberAttributes); 1457MessageHeaderAttribute headerAttr = ServiceReflector.GetRequiredSingleAttribute<MessageHeaderAttribute>(attrProvider, s_messageContractMemberAttributes); 1583_syncInputs = ServiceReflector.GetInputParameters(_syncOperation.SyncMethod, false); 1584_asyncInputs = ServiceReflector.GetInputParameters(_asyncOperation.BeginMethod, true); 1585_syncOutputs = ServiceReflector.GetOutputParameters(_syncOperation.SyncMethod, false); 1586_asyncOutputs = ServiceReflector.GetOutputParameters(_asyncOperation.EndMethod, true); 1726_syncInputs = ServiceReflector.GetInputParameters(_syncOperation.SyncMethod, false); 1727_taskInputs = ServiceReflector.GetInputParameters(_taskOperation.TaskMethod, false); 1843_taskInputs = ServiceReflector.GetInputParameters(_taskOperation.TaskMethod, false); 1844_asyncInputs = ServiceReflector.GetInputParameters(_asyncOperation.BeginMethod, true);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlImporter.cs (1)
816var xfeAttributes = ServiceReflector.GetCustomAttributes(extension.GetType(), typeof(WsdlConfigNS.XmlFormatExtensionAttribute), false);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ProxyOperationRuntime.cs (5)
63_inParams = ServiceReflector.GetInputParameters(_beginMethod, true); 66_outParams = ServiceReflector.GetOutputParameters(_syncMethod, false); 72_endOutParams = ServiceReflector.GetOutputParameters(operation.EndMethod, true); 77_inParams = ServiceReflector.GetInputParameters(_syncMethod, false); 78_outParams = ServiceReflector.GetOutputParameters(_syncMethod, false);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\TaskMethodInvoker.cs (1)
34if (taskType != ServiceReflector.VoidType)