diff options
| author | Joshua M. Boniface <joshua@boniface.me> | 2020-07-24 12:21:25 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-24 12:21:25 -0400 |
| commit | e3db0ac400e7a1a42e7a844a13ab052d26125612 (patch) | |
| tree | c72dcbc78fab6194731f17cd86ee028a6458d514 /Emby.Server.Implementations/Services/ServiceExec.cs | |
| parent | f5a3cc654fc8646e633489919b4a8b9e7d3c48fe (diff) | |
| parent | 928bc6c7875c4523ee158aabc0e2ffc46c691383 (diff) | |
Merge pull request #3657 from Bond-009/readonlyspan
Review usage of string.Substring (part 1)
Diffstat (limited to 'Emby.Server.Implementations/Services/ServiceExec.cs')
| -rw-r--r-- | Emby.Server.Implementations/Services/ServiceExec.cs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Services/ServiceExec.cs b/Emby.Server.Implementations/Services/ServiceExec.cs index cbc4b754d..7b970627e 100644 --- a/Emby.Server.Implementations/Services/ServiceExec.cs +++ b/Emby.Server.Implementations/Services/ServiceExec.cs @@ -2,6 +2,7 @@ using System; using System.Collections.Generic; +using System.Globalization; using System.Linq; using System.Linq.Expressions; using System.Reflection; @@ -105,7 +106,13 @@ namespace Emby.Server.Implementations.Services } var expectedMethodName = actionName.Substring(0, 1) + actionName.Substring(1).ToLowerInvariant(); - throw new NotImplementedException(string.Format("Could not find method named {1}({0}) or Any({0}) on Service {2}", requestDto.GetType().GetMethodName(), expectedMethodName, serviceType.GetMethodName())); + throw new NotImplementedException( + string.Format( + CultureInfo.InvariantCulture, + "Could not find method named {1}({0}) or Any({0}) on Service {2}", + requestDto.GetType().GetMethodName(), + expectedMethodName, + serviceType.GetMethodName())); } private static async Task<object> GetTaskResult(Task task) |
