Commit Graph

52 Commits

Author SHA1 Message Date
JustArchi
d21d2473fe RuntimeCompatibility -> Compatibility 2021-05-08 01:43:08 +02:00
JustArchi
e60b54e402 Refactor EVERYTHING
Directories structure + namespaces relevant to them
2021-05-08 01:37:22 +02:00
JustArchi
daf37c723c Document all the pragmas, final code corrections 2021-05-07 23:56:45 +02:00
JustArchi
809a4bbfbf Resolve CA2000 2021-05-07 18:55:50 +02:00
JustArchi
5745e00bda Resolve CA1303 2021-05-07 00:06:03 +02:00
JustArchi
ef52e076d3 Cleanup round 2021-05-06 20:28:25 +02:00
JustArchi
efec44e593 R# code improvements & cleanups 2021-04-11 00:33:32 +02:00
JustArchi
4d67a44d82 Follow-up on SteamTarget rewrite
That went much smoother than I expected
2021-03-02 17:10:10 +01:00
JustArchi
137f46ec3b SteamTarget: Add back the required logic 2021-03-02 00:26:12 +01:00
JustArchi
6d853c7379 SteamTarget: Report Write() progress properly
Okay so this is a nasty one. If somebody has configured SteamTarget to notify about e.g. ASF crash, our LogManager.Flush() will NOT wait for that message to be sent before returning, as the Write() operation will return the moment it hits any async operation, at the very latest, the operation to write to a socket.

Our expectation is that we want to send that message (emptying our logging queue) before actually shutting down the process, and for that we need that Write() operation to block until the request is actually sent.

This is a quick fix for that while a pending rewrite for AsyncTaskTarget is in order - https://github.com/NLog/NLog/wiki/How-to-write-a-custom-async-target
2021-03-02 00:16:46 +01:00
JustArchi
45a5fec95a Happy 2021
And let's hope it'll be better than 2020
2021-01-03 22:24:22 +01:00
JustArchi
34a355f0ea Misc 2020-12-31 01:00:26 +01:00
JustArchi
eb14d75430 Add result to the logged friend invite 2020-12-31 00:59:18 +01:00
JustArchi
82ff7762f2 Convert possible substring calls to string ranges 2020-12-02 23:45:20 +01:00
JustArchi
e82560259b Final code cleanup 2020-11-14 22:37:00 +01:00
JustArchi
d126824dfd Misc 2020-11-11 21:19:29 +01:00
JustArchi
cc923523be Misc 2020-11-11 21:16:51 +01:00
JustArchi
102ed7282a Closes #2048 2020-11-11 21:06:17 +01:00
JustArchi
6a811008eb More code cleanups 2020-11-11 18:02:17 +01:00
JustArchi
deb886066b Misc 2020-10-14 14:24:53 +02:00
JustArchi
c1ba2b5338 Misc 2020-10-07 21:25:15 +02:00
Ryzhehvost
2a71e2cb0b add logging of invites (#2005)
* add logging of invites

* required changes

* revert not needed changes

* remove not needed convertation
2020-10-07 21:22:39 +02:00
JustArchi
e0ba7f2a92 Fix warning 2020-09-25 13:21:36 +02:00
JustArchi
70915ecaed Convert BotName of SteamTarget to Layout 2020-09-25 13:16:53 +02:00
JustArchi
b3d476dea4 Round 2 of nullable checks 2020-08-23 20:45:24 +02:00
Łukasz Domeradzki
9fc1ea65a5 Closes #1543 (#1944)
* Start working on nullable checks

help me

* Update GlobalConfig.cs

* Finish initial fixup round

* nullability code review
2020-08-22 21:41:01 +02:00
JustArchi
4ead85965a Add another superpower: fetching 2FA deviceID automatically 2020-07-05 00:45:13 +02:00
JustArchi
a5d85a211d Add /Api/{Bots}/Input endpoint
Makes https://github.com/JustArchiNET/ASF-ui/issues/888 (and similar actions) possible
2020-06-03 19:26:59 +02:00
JustArchi
ab57163695 Update Logging.cs 2020-05-20 20:43:13 +02:00
JustArchi
9259043e6d Load NLog.config when not in AppContext.BaseDirectory instead
This is needed as custom NLog.config no longer gets loaded in single-file scenario, where NLog probes the directory of the unpacked files instead.

For non-single-publishes this doesn't change anything, as home directory is equal to base directory if not using custom path.
2020-05-16 00:54:28 +02:00
JustArchi
0370168b02 Happy new year 2020-02-01 23:33:35 +01:00
JustArchi
308fff0460 Correct ASF FileTarget logging to follow --path 2019-09-20 19:08:20 +02:00
JustArchi
e5756ac8e6 Enable logs archiving 2019-07-27 19:22:22 +02:00
JustArchi
74fd861b87 R# code review 2019-07-10 16:35:18 +02:00
JustArchi
794dc3fc17 Closes #1250 2019-05-26 21:17:52 +02:00
JustArchi
3995c3b2b6 Misc 2019-05-23 13:34:27 +02:00
JustArchi
b98268a465 R# cleanup, small code improvements 2019-05-19 15:38:06 +02:00
JustArchi
07b8978866 Limit ASF to a single instance per directory 2019-03-29 23:07:06 +01:00
JustArchi
5e4a90bb70 Allow to find bots by SteamID in selected functions 2019-02-25 23:49:20 +01:00
JustArchi
65968b4302 Respect custom BotsComparer when navigating through bot names 2019-02-23 08:40:56 +01:00
JustArchi
57272c2b31 Misc 2019-02-23 05:02:22 +01:00
JustArchi
cd1a9d50de Misc 2019-02-23 04:56:14 +01:00
JustArchi
71a9f06e55 Implement interactive command console 2019-02-23 04:31:58 +01:00
JustArchi
b5c7fb3b76 Fix potential NRE with SteamTarget 2019-02-18 03:40:07 +01:00
JustArchi
b677ba8202 Code/style cleanup 2019-02-16 17:34:17 +01:00
JustArchi
e1e9a9f457 Rider cleanup 2019-01-14 19:11:17 +01:00
JustArchi
192656cd02 Implement basic code contracts 2019-01-10 23:44:32 +01:00
Łukasz Domeradzki
0f2a816b92 Implement plugin system (#1020)
* Implement basic plugin system

* The dawn of new era

* Add plugins warning

* Move more members to PublicAPI

* Open commands for the plugins

* Add IBotHackNewChat

* Run plugin events in parallel

* Use properties in IPlugin

* Hook our custom plugin into CI to ensure it compiles

* Fix dotnet brain damage

* Add IBotsComparer

* Add code documentation

* Add IBotTradeOffer

* Add IBotTradeOffer example

* Add IBotTradeOfferResults

* Final bulletproofing

* Final renaming
2019-01-10 22:33:07 +01:00
JustArchi
3bbddcf723 Happy new year 🎉 2019-01-02 16:32:53 +01:00
JustArchi
f8aa8babcf R# cleanup 2018-12-15 00:27:15 +01:00