Commit Graph
18 Commits
Author SHA1 Message Date
Kenneth SkovhedeandGitHub 99d0cb3c57 Merge pull request #3953 from warwickmm/make_fields_readonly
Mark fields that don't need to be reassigned as readonly
2019-10-21 08:36:17 +02:00
Kenneth Hsu 2aa76881a5 Mark fields that don't need to be reassigned as readonly.
This makes it explicit at compile-time that these fields should not be
reassigned outside the constructor.
2019-10-19 13:59:22 -07:00
Kenneth Hsu afab61a05b Use pattern matching to simplify casts. 2019-10-19 10:15:38 -07:00
Kenneth Hsu 03b08d7ae3 Write unwrapped exception message to JSON.
While the original intent was likely to write a more meaningful message
to JSON, the previous implementation unwrapped the
TargetInvocationException but neglected to use the unwrapped Exception.
2019-04-14 10:03:08 -07:00
Mikael Mello 608e4e7972 Fix error when trying to add items to empty HttpForm (that is an empty HttpInput) 2018-10-11 09:30:28 -03:00
Kenneth Hsu d72128ec83 Remove unused method parameters. 2018-10-06 15:09:43 -07:00
Kenneth Hsu df5f8e16b9 Use ordinal case-insensitive comparison instead of ToUpper. 2018-09-19 15:21:59 -07:00
verhoek c455253d90 Use concurrent dictionary. 2018-06-15 09:39:15 +02:00
Kenneth Hsu 5fb1958ceb Remove redundant calls to ToString. 2017-11-26 15:44:34 -08:00
Tyler Gill 83a1dcfb64 Replace all instances of InvariantCultureIgnoreCase with OrdinalIgnoreCase in string comparisons.
InvariantCulture is useful when comparing / sorting human language strings in a culturely correct way. It handles things like accented letters in a way that makes sense to humans (e.g., 'a' should be sorted next to 'á', rather than after 'z').
Ordinal looks just at the raw code points of the characters. As such, it is recommended for use in cases when comparing system strings (file paths, command line parameters, config settings, etc.). Since it doesn't need to use the culture specific sorting rules, this method can often be faster.

For more information, see https://stackoverflow.com/questions/492799/difference-between-invariantculture-and-ordinal-string-comparison (and other related questions)
2017-09-18 23:55:08 -06:00
Kenneth Skovhede 4fe6e2eb1f Fixed a startup crash 2017-04-06 10:35:20 +02:00
agrajaghh e535f0cdc0 remove space from language headers
otherwise a string like this: ", de,en-US;q=0.7,en;q=0.3" would result in "en" instead of "de"
2016-10-05 20:13:43 +02:00
Kenneth Skovhede 6d1547953f Implemented localizations in the NGAX UI 2016-09-27 20:45:27 +02:00
Kenneth Skovhede 1f9961c919 Workaround for "System.Reflection.Assembly.get_DefinedTypes'" not being implemented in Mono 2.11 and below 2016-01-12 09:52:15 +01:00
Kenneth Skovhede 73ddca0907 Various bug-fixes for the REST API + a new cache for querying completed task status 2015-10-04 17:14:51 +02:00
Kenneth Skovhede 6dac0f3c2e Fixed an invalid line-ending character 2015-08-05 13:51:56 +02:00
Kenneth Skovhede 1f35824317 Converted to REST based API, with a wrapper layer for control.cgi so the current UI still works. 2015-07-30 14:31:27 +02:00
Kenneth Skovhede 9b51072ee9 Work on a REST API for the server 2015-07-04 13:42:52 +02:00