Skip to content

Commit dfb5463

Browse files
committed
Simplified method finding from instance of object
1 parent a54a205 commit dfb5463

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JKang.IpcServiceFramework.Server/IpcServiceEndpoint.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ public static MethodInfo GetUnambiguousMethod(IpcRequest request, object service
166166

167167
MethodInfo method = null; // disambiguate - can't just call as before with generics - MethodInfo method = service.GetType().GetMethod(request.MethodName);
168168

169-
var types = new[] {service.GetType()}.Concat(service.GetType().GetInterfaces());
169+
var types = service.GetType().GetInterfaces();
170170

171171
var allMethods = types.SelectMany(t => t.GetMethods());
172172

0 commit comments

Comments
 (0)