Commit graph

70 commits

Author SHA1 Message Date
JustArchi
847c78b650 R# cleanup 2020-03-05 21:05:40 +01:00
JustArchi
930d953ef4 Update ArchiSteamFarm.sln.DotSettings 2019-09-14 22:00:42 +02:00
JustArchi
64bd8308ca R# code review 2019-08-10 17:38:49 +02:00
JustArchi
47aa0d03af Code cleanup 2019-07-28 21:15:35 +02:00
JustArchi
178ca64cfa Implement non-blocking IO saving for databases 2019-07-25 17:09:20 +02:00
JustArchi
adec280472 Packages update 2019-07-20 02:08:19 +02:00
JustArchi
b98268a465 R# cleanup, small code improvements 2019-05-19 15:38:06 +02:00
JustArchi
b677ba8202 Code/style cleanup 2019-02-16 17:34:17 +01:00
JustArchi
e0ede90525 Closes #1036 2019-01-15 12:23:20 +01:00
JustArchi
18d5f1938f Open configs for public API 2019-01-14 21:50:23 +01:00
JustArchi
e1e9a9f457 Rider cleanup 2019-01-14 19:11:17 +01:00
JustArchi
cf63065681 Implement redirection RFC in WebBrowser 2019-01-06 19:20:24 +01:00
JustArchi
f8aa8babcf R# cleanup 2018-12-15 00:27:15 +01:00
JustArchi
3b607b1294 Misc 2018-10-17 20:28:17 +02:00
JustArchi
f4a96c681e R# cleanup 2018-10-17 20:22:55 +02:00
JustArchi
7ab19aa806 Refactor ASF commands for future actions
Closes #891
2018-09-15 22:34:32 +02:00
JustArchi
9534d2b9f0 R# cleanup 2018-09-08 00:46:40 +02:00
Łukasz Domeradzki
e18c8ffa55
Rewrite IPC from HttpListener to KestrelHttpServer (#898)
* Debug tests

* Update

* Add support for IPCPassword

* Misc

* Misc

* Update

* Misc

* Cut dependencies to bare minimum

* Update

* Update

* Update

* Update

* Add support for websockets

* Cleanup and preparation for merge

* Add missing mapping of / -> index.html

* Add support for custom path + misc

* Misc

* Declare latest compatibility version

* Fix harmless error on /Api/Log websocket disconnect
2018-09-08 00:05:23 +02:00
Vital7
ca9a3458fb Autoaccepting wallet gift cards (#885)
* Add accepting of wallet gift cards

* Split function by two, move bot-related parts to Bot.cs, better xpath

* Remove unneccessary warning

* Forgot to remove beginning chars

* Request data to separate variable, session request in GetDigital..., variable renaming

* Modify XPath a bit to make it more understandable

* Move substring call further, length checking

* Implement semaphore and queue

* Fix typo

* SessionID comment, entries are in alphabetical order

* Add a few spaces to xpath

* Logging: warning -> error

* Dispose GiftCardsSemaphore

* General formatting fixes

* Final formatting fixes, HandledGifts check

* AcceptGifts config value handling

* Handling 0 in function argument
2018-08-20 03:33:09 +02:00
JustArchi
16d002f99b Misc code cleanup 2018-07-27 04:52:14 +02:00
JustArchi
7c789c62f4 Disable EditorConfig for R# until it gets better support with it 2018-07-11 16:59:40 +02:00
JustArchi
2a1d5d1e60 Correct R# modifiers orders 2018-07-10 15:05:06 +02:00
JustArchi
06aad0c7d1 Misc 2018-07-10 14:54:01 +02:00
JustArchi
aaff52a40e Misc 2018-07-10 14:53:04 +02:00
JustArchi
dfb90624e8 R# Code cleanup 2018-06-16 07:47:07 +02:00
JustArchi
152ba0bdf2 Code review 2018-06-04 16:54:22 +02:00
JustArchi
87fb401928 Packages update 2018-03-29 01:52:39 +02:00
JustArchi
423200fd38 Add /Api/WWW/Directory 2018-03-15 01:55:24 +01:00
JustArchi
3682eefc02 Code review 2018-03-09 15:43:25 +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
83821e9994 Make usage of login keys optional 2017-11-28 21:31:45 +01:00
JustArchi
d5f44f8f6c ReSharper: update header 2017-11-18 17:27:06 +01:00
JustArchi
2d767c41aa Fix latest Steam notifications fuckup
Initially the issue was observed in #697, but that itself wasn't exactly what was fixed here, as multiple evaluation of the same trade is still wanted scenario.

The real issue was reported in http://steamcommunity.com/groups/ascfarm/discussions/1/2425614539578192287/

In a huge TL;DR, Steam is now sending trades notification each time something fetches current trade offers, be it ASF, the user, or some other script.

This will lead to possible ASF trade loop, as we'll get wanted notification about new trades, fetch them, leave some trades untouched, get new notification about trades and so on.

Initially I wanted to fix this in dirty way by just ignoring any extra notifications that happened since API call until 5 extra seconds after we were done with entire parsing, but I found much better solution - Steam actually includes extra info about amount of trades/items in notification (makes sense, since Steam client displays that info too). We can make use of that info and simply ignore any extra notification that results in same or smaller count.

Thanks to that we didn't only add a decent workaround for this recent Steam fuckup, but we also improved internal ASF code that will no longer schedule extra parsing if we accepted/rejected only some of the trades, making me happy with the actual solution.
2017-11-18 17:20:24 +01:00
JustArchi
070e91a6f9 Misc improvement 2017-11-17 17:50:14 +01:00
JustArchi
054949419f Misc ReSharper 2017-11-12 21:21:42 +01:00
JustArchi
336a965903 ReSharper update 2017-11-11 19:12:26 +01:00
JustArchi
6929bf09f3 Add extra helper links 2017-09-28 05:07:23 +02:00
JustArchi
5b2b00a9f0 Add MatchableTypes
As well as unit testing so I'm sure that part is not screwed up.
2017-07-10 08:20:15 +02:00
JustArchi
88a7d2e7e9 Code cleanup 2017-07-09 09:09:46 +02:00
JustArchi
501c834d1d Kill last misleading ReSharper code issues 2017-07-05 04:55:17 +02:00
JustArchi
96a69f2157 Fix deadlock in FarmMultiple()
Our Forget() tasks are in fact getting forgotten when given async method stumbles upon await call.

We were executing async Farm() via Forget(), but it was entirely possible that we won't get opportunity to await anything if we follow FarmHours() path, making FarmingSemaphore signaled until we're done farming hours.
2017-07-03 18:54:57 +02:00
JustArchi
b482c35548 Misc 2017-07-03 12:17:42 +02:00
JustArchi
9aa36f1a03 Code style update/fixes 2017-07-03 12:14:23 +02:00
JustArchi
a42ec697b0 Implement basic HttpListener IPC as WCF alternative 2017-06-26 08:42:00 +02:00
JustArchi
c787beb655 Add hacked optimization mode 2017-06-26 05:02:40 +02:00
JustArchi
4e1a03222b Fix potential STM logic exploit
Previously we calculated amounts (and therefore, differences) based on cards only, which means that user could earn some extra 'points' in our calculation for giving us many trash cards that we miss, and in exchange for that swap cards from some other game that would normally results in non-neutral difference on that game basis, but neutral+ in overall basis (that we operated on).
This would not cause any serious problem, because ASF ensures that trade is fair before calculating actual neutrality, but it could result in accepting a trade that is neutral+ only at first sight, and non-neutral+ when we take a closer look what we're actually swapping.
The logic was enhanced to handle differences on per-game basis now, and taking minimum in account, so all swaps on per-game basis have to be neutral+ now
2017-04-08 04:33:01 +02:00
JustArchi
adfc992f26 Resharper Cleanup v2 2017-04-05 17:23:18 +02:00
JustArchi
fcf9686a79 Revert "Resharper cleanup"
This reverts commit 7c8d7b5ada.

Bad cleanup.
2017-04-05 17:01:18 +02:00
JustArchi
7c8d7b5ada Resharper cleanup 2017-04-05 16:59:48 +02:00