Commit Graph

73 Commits

Author SHA1 Message Date
JustArchi
b76ecf5779 Misc 2018-03-17 23:25:12 +01:00
JustArchi
6e534afb13 Misc 2018-03-17 17:05:29 +01:00
JustArchi
ce89e92a96 Fix race condition uncovered by ILLink.Tasks 2018-03-17 17:03:50 +01:00
JustArchi
2cae055442 Add GlobalConfig.CommandPrefix and change default ! to . 2018-03-15 16:12:14 +01:00
JustArchi
97e44afbc3 Always strong-type GenericResponse on per-API basis
Even when it returns object.
2018-03-15 02:13:36 +01:00
JustArchi
423200fd38 Add /Api/WWW/Directory 2018-03-15 01:55:24 +01:00
JustArchi
ea646e3c01 Clear failed tries on success 2018-02-26 22:29:47 +01:00
JustArchi
082fedfa0b Implement IPC anti-bruteforce 2018-02-26 22:23:38 +01:00
JustArchi
c18964ceef Greatly improve ASF background operations
I hated that Forget() for quite a long time now, finally this code looks much better now.
2018-02-26 18:48:57 +01:00
JustArchi
4a5665c92b Switch to proper OrderedDictionary 2018-02-26 08:53:14 +01:00
JustArchi
9c8c97e788 Use SortedDictionary also in IPC and File read 2018-02-26 06:30:31 +01:00
JustArchi
5a3b897dbb Add extended validation for GamesToRedeemInBackground 2018-02-22 17:53:38 +01:00
JustArchi
37564d0cfe Add GlobalConfig to /Api/ASF, and POST /Api/ASF, #750 2018-02-22 16:08:50 +01:00
JustArchi
8e9e423dda Misc 2018-02-21 18:51:38 +01:00
JustArchi
c968716940 Add support for .keys file to FileSystemWatcher 2018-02-17 19:29:33 +01:00
JustArchi
58857bc578 Misc 2018-02-17 03:14:33 +01:00
JustArchi
3b234f0a4d Add /Api/GamesToRedeemInBackground
P.S. Not tested yet, too lazy to do so as of now.
2018-02-14 19:14:33 +01:00
JustArchi
0cca2fd7b4 Implement IPCPrefixes
This makes it possible to not only listen on multiple different host/port combinations, but also different protocols or base URLs (even though this will probably break things up, need to do more tests)
2018-02-12 22:07:02 +01:00
JustArchi
b06f7394da Further normalize the response 2018-02-12 11:33:32 +01:00
JustArchi
139bc1c951 Normalize /Api/Type under TypeResponse 2018-02-12 11:11:17 +01:00
JustArchi
bb06b9a887 Push updated /Api/Type definition 2018-02-12 11:04:27 +01:00
JustArchi
65682d0316 Don't serialize private get properties 2018-02-11 17:26:19 +01:00
JustArchi
d226e5db5a Misc 2018-02-05 12:54:28 +01:00
JustArchi
7b18f52fec Re-implement previous commit better 2018-02-04 09:59:21 +01:00
JustArchi
4223d3862d Revert "Catch more IPC I/O exceptions"
This reverts commit 92281512f5.
2018-02-04 09:56:22 +01:00
JustArchi
92281512f5 Catch more IPC I/O exceptions 2018-02-04 09:54:49 +01:00
JustArchi
c88d8adbed Revert "Test commit for madu"
This reverts commit aa6e29e56f.
2018-02-04 09:34:05 +01:00
JustArchi
aa6e29e56f Test commit for madu 2018-02-04 09:16:31 +01:00
JustArchi
c6f06f1bd5 Don't force full collection on memory request
Since this can be called quite often (like each 5 seconds), ASF should not do any expensive things there. Let GC do its job.
2018-02-04 08:10:52 +01:00
JustArchi
84ec1a3413 Misc optimizations 2018-01-31 02:51:28 +01:00
JustArchi
9e886176cb Huge /Api/Log update for #733 2018-01-31 02:42:23 +01:00
JustArchi
2ee810d56a Closes #736
Note to self: check if this works on Linux/OS X too before documenting it. I might need to change it if it doesn't.
2018-01-30 21:09:42 +01:00
JustArchi
44d62aa6f5 Add WebSocket /Api/Log stub, #733 2018-01-28 06:16:51 +01:00
JustArchi
7cc3084664 IPC: require password only for /Api calls, #733 2018-01-28 04:54:51 +01:00
JustArchi
ac87db0469 IPC: don't waste time compressing images 2018-01-28 04:10:11 +01:00
JustArchi
37c8096e27 Implement basic HTTP file server (IPC GUI binding), #733
I don't even want to know how many RFCs this thing violates. "It works!" 😅

Hopefully we'll improve it if needed.
2018-01-28 03:23:58 +01:00
JustArchi
1deb5e0d0a Add /Api/ASF, #732 2018-01-28 01:52:07 +01:00
JustArchi
6bbff6ab4e Happy new year 2018-01-01 02:56:53 +01:00
JustArchi
7a543553b3 Allow using private constructor 2017-12-14 08:24:28 +01:00
JustArchi
d632e85309 Add /Api/Type endpoint 2017-12-14 08:12:33 +01:00
JustArchi
368c616d3e Use 403 forbidden for no SteamOwnerID 2017-12-11 15:59:44 +01:00
JustArchi
1574af29dd Add GET /Api/Structure 2017-12-10 00:01:39 +01:00
JustArchi
35e75cbc1c Fix build
I like how finally I'm getting notified about potential warnings, if only I could hook ReSharper there...
2017-12-09 23:21:27 +01:00
JustArchi
5235339fbb Add an option to keep sensitive details, #610
I completely forgot that we intentionally omit sensitive details, so bot config update API should have a way to inherit them without exposing, this will do.

Note to self: ALWAYS use custom JSON classes, so I won't need to break API just like like now, at worst I'll add new acceptable properties.
2017-12-09 23:15:33 +01:00
JustArchi
135e25d5a7 Fix new IPC ObjectDisposedException 2017-12-09 20:49:39 +01:00
JustArchi
57bcf50364 More API improvements 2017-12-06 10:21:30 +01:00
JustArchi
f9d8179904 Remove !api command, make API endpoint accept multiple bots 2017-12-06 10:06:50 +01:00
JustArchi
1a5b5a90fe API updates 2017-12-06 09:47:25 +01:00
JustArchi
fe6865050f Closes #667 2017-12-06 08:14:12 +01:00
JustArchi
44f9d80b60 Use 401 unauthorized for wrong IPC password 2017-12-04 22:27:20 +01:00