Commit Graph

100 Commits

Author SHA1 Message Date
JustArchi
bc8ee3592d Cleanup some obsolete warnings 2020-12-05 21:53:18 +01:00
JustArchi
6265aa7271 Misc code improvements 2020-12-05 20:27:10 +01:00
JustArchi
e82560259b Final code cleanup 2020-11-14 22:37:00 +01:00
JustArchi
b3d476dea4 Round 2 of nullable checks 2020-08-23 20:45:24 +02:00
JustArchi
f99043db30 Closes #1832 2020-08-23 19:24:10 +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
02ee3bce53 Closes #1900
Also make token generation slightly faster while we're at it
2020-07-18 13:53:26 +02:00
JustArchi
97e5969362 Closes #1891 2020-07-10 00:28:46 +02:00
JustArchi
ddf03547a3 Fix remaining brain damage 2020-07-05 12:05:06 +02:00
JustArchi
4ead85965a Add another superpower: fetching 2FA deviceID automatically 2020-07-05 00:45:13 +02:00
JustArchi
6ca4372d1b Misc bulletproofing against invalid codes 2020-07-01 15:22:59 +02:00
JustArchi
6c22724835 Implement OS-wide, cross-process semaphores for ASF instances
Distinction is preserved on webproxy basis (even for LoginLimiter which shouldn't work like that)

Addresses crucial part of #1798
2020-05-20 22:01:29 +02:00
JustArchi
5d4e2eaf64 Use string indices 2020-04-18 18:28:15 +02:00
JustArchi
b23f634c9b Implement IAsyncDisposable for all ASF classes that can make use of it 2020-04-18 17:52:11 +02:00
JustArchi
63c8a6540e Fix some disposable patterns 2020-04-18 14:08:37 +02:00
JustArchi
1e87341877 Small cleanup 2020-04-02 17:16:05 +02:00
Vitaliy
fbe5bd12ae Use streams for http responses instead of strings where possible, replace HtmlAgilityPack with AngleSharp (#1703)
* Replace HAP with AngleSharp, add stream support to WebBrowser

* Fix skipped nullable operator

* Add extension method

* Rename function to be closer to HAP API

* Add JSON deserialization from stream, fix variable names, remove obsolete code

* Add more extension methods

* Fixes after review:

Remove excessive dependency
Move string value to const
Different handling for null and empty cases for confirmations
Use more human-friendly names

* Add http completion options, make GetToStream private

* Cleanup

* Add null checks, make StreamResponse disposable

* Refactor UrlGetToBinaryWithProgress into using UrlGetToStream
2020-04-02 17:01:55 +02:00
JustArchi
0370168b02 Happy new year 2020-02-01 23:33:35 +01:00
JustArchi
a0dfb28e59 R# cleanup 2019-10-13 17:21:40 +02:00
Łukasz Domeradzki
5b4867c387 Update ASF to .NET Core 3.0 (#1427)
* Initial bump to .net core 3.0

* Update cc.sh

* Update appveyor.yml

* Update ArchiSteamFarm.csproj

* Update appveyor.yml

* Update .travis.yml

* Build corrections

* Cleanup

* Update .travis.yml

* Don't publish trimmed for now

* Update ArchiSteamFarm.csproj
2019-09-26 20:28:25 +02:00
JustArchi
44c5bf4ad5 Misc 2019-04-04 17:56:38 +02:00
JustArchi
b677ba8202 Code/style cleanup 2019-02-16 17:34:17 +01:00
JustArchi
a00782527d Add handling for one more deviceID + misc optimization 2019-02-15 21:20:44 +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
e448284174 Misc 2019-01-12 19:08:36 +01:00
JustArchi
bda4f2c822 Make deviceIdentifier-less deviceIDs work with ASF 2FA 2019-01-11 21:15:13 +01:00
JustArchi
192656cd02 Implement basic code contracts 2019-01-10 23:44:32 +01:00
JustArchi
ac1dd261ff Misc 2019-01-04 15:49:16 +01:00
JustArchi
9810461c74 Closes #1007 2019-01-04 15:46:31 +01:00
JustArchi
3bbddcf723 Happy new year 🎉 2019-01-02 16:32:53 +01:00
JustArchi
214dbaabcd Improve 2FA import process 2018-12-26 16:56:28 +01:00
JustArchi
f8aa8babcf R# cleanup 2018-12-15 00:27:15 +01:00
JustArchi
9534d2b9f0 R# cleanup 2018-09-08 00:46:40 +02:00
JustArchi
16d002f99b Misc code cleanup 2018-07-27 04:52:14 +02:00
JustArchi
dfb90624e8 R# Code cleanup 2018-06-16 07:47:07 +02:00
JustArchi
2a5a60e094 Slightly improve confirmations limiter, #769
We don't need strict 1-request-at-a-time logic, just delay between consecutive ones. This doesn't change the logic dramatically, only starts counting delay the moment we send the request and not the moment we receive the response.
2018-03-21 17:42:44 +01:00
JustArchi
3682eefc02 Code review 2018-03-09 15:43:25 +01:00
JustArchi
4ba026a91f Make confirmation's type detection more robust 2018-03-07 17:03:39 +01:00
JustArchi
2744577019 Fix for another Steam breaking change 2018-03-07 00:34:51 +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
2a71032ffa Misc 2018-02-07 09:25:23 +01:00
JustArchi
69e3885a96 Code review 2018-02-07 09:13:58 +01:00
JustArchi
c6f812d0e7 Fix for latest Steam breaking fix
I wonder if Valve does anything when this one overflows too.
2018-02-04 06:35:54 +01:00
JustArchi
4c330ded16 Closes #728 2018-01-12 19:43:34 +01:00
JustArchi
6bbff6ab4e Happy new year 2018-01-01 02:56:53 +01:00
JustArchi
319fe69088 Don't keep SteamTimeDifference infinitely
With long-running systems time might run out of sync eventually.
2017-12-17 11:31:42 +01:00
JustArchi
f21a998bbb Test for double fine adventure 2017-12-15 10:37:51 +01:00
JustArchi
339eb8df0d Rename 2/2 2017-12-14 08:23:17 +01:00
JustArchi
d5f44f8f6c ReSharper: update header 2017-11-18 17:27:06 +01:00