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