Skip to content

Commit adaa8a4

Browse files
Merge pull request #463 from GridProtectionAlliance/case-insensitive-invoke
GSF.TimeSeries: Fix invoke command to do case-insensitive matching for method names
2 parents 46da578 + 3132d90 commit adaa8a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Libraries/GSF.TimeSeries/ServiceHostBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2102,7 +2102,7 @@ protected virtual void InvokeRequestHandler(ClientRequestInfo requestInfo)
21022102
MethodInfo method = adapter
21032103
.GetType()
21042104
.GetMethods(BindingFlags.Public | BindingFlags.Static | BindingFlags.Instance | BindingFlags.IgnoreCase)
2105-
.Where(method => method.Name == command)
2105+
.Where(method => method.Name.Equals(command, StringComparison.OrdinalIgnoreCase))
21062106
.Where(method => method.TryGetAttribute(out AdapterCommandAttribute _))
21072107
.Select((method, index) => index == 0 ? method : throw new AmbiguousMatchException())
21082108
.LastOrDefault();

0 commit comments

Comments
 (0)