Commit Graph

152 Commits

Author SHA1 Message Date
JustArchi
0e29aaf20f Mark /Api/WWW/Send as obsolete 2021-03-08 22:33:26 +01:00
JustArchi
a4310d28f7 Add /Api/WWW/GitHub/Wiki/History endpoint 2021-03-08 22:27:03 +01:00
JustArchi
1f3a064dc0 Add /Api/WWW/GitHub/Wiki/Page endpoint 2021-03-08 21:46:12 +01:00
JustArchi
210e89be8e Remove /Api/WWW/Directory/{directory} endpoint
No longer used by ASF-ui
2021-03-08 20:13:29 +01:00
JustArchi
e83597db7a Misc 2021-03-08 20:04:07 +01:00
JustArchi
4700ed2706 Further code cleanup 2021-01-04 17:42:31 +01:00
JustArchi
45a5fec95a Happy 2021
And let's hope it'll be better than 2020
2021-01-03 22:24:22 +01:00
Vitaliy
c5c55dc44e Add base path support for swagger (#2091) 2020-12-18 12:05:54 +01:00
JustArchi
626fa7f059 Use the cancellation token logic also with sends 2020-12-16 12:47:46 +01:00
JustArchi
79a9f97157 Add two more exceptions to NLogGet
Even with cancellation token, it seems that it's not always possible to abort the connection in the clean way, pointless to throw on them since there is nothing else we can do.
2020-12-16 12:11:21 +01:00
JustArchi
c140b302eb Correct CI
I forgot this is a struct, not a class
2020-12-16 10:21:16 +01:00
JustArchi
58ae29d1eb Small fixes after #2087
- Add guard against cancellationToken being null
- Use cancellationToken for all webSocket operations
- Use no cancellation token for semaphore release
- Log TaskCanceledException on user-debugging level
2020-12-16 10:18:05 +01:00
Bartosz Chrostowski
3e2c7dcf2c Add cancellation token to web socket (#2087)
* Add cancelation token to web socket

* Add catching cancelation exception from web scoket
2020-12-16 10:03:13 +01:00
JustArchi
9d2bb9939d Misc 2020-12-11 23:00:54 +01:00
JustArchi
6265aa7271 Misc code improvements 2020-12-05 20:27:10 +01:00
JustArchi
82ff7762f2 Convert possible substring calls to string ranges 2020-12-02 23:45:20 +01:00
JustArchi
14f58d5aec Code cleanup 2020-11-29 16:15:20 +01:00
JustArchi
ba702a1dae Misc 2020-11-28 23:18:23 +01:00
JustArchi
178509eb21 Avoid loading assemblies in IPC when no plugins are active
Apart from small optimization, this avoids the problem of starting IPC server if one of the assemblies fail to load (as ASF will abort the rest of the plugins loading routine, and therefore no plugins will be loaded at all).
2020-11-25 11:52:02 +01:00
JustArchi
e82560259b Final code cleanup 2020-11-14 22:37:00 +01:00
JustArchi
47b42d6fc0 More code cleanups 2020-11-11 19:51:52 +01:00
JustArchi
60ae4977da Initial code cleanup 2020-11-11 16:51:31 +01:00
Łukasz Domeradzki
35f4651ed6 .NET 5.0 (#1999)
* Initial work

* Fix CIs

* Fix warnings

* Update .travis.yml

* Update dockerfiles

* Update libraries to .NET 5.0

* Misc

* Remove workaround for #1812

* Update cc.sh

* CI updates

* CI updates

* Update .travis.yml
2020-11-10 23:22:57 +01:00
JustArchi
f99d296687 Closes #2014 2020-11-04 23:39:57 +01:00
JustArchi
fe0df93176 Expose CanUpdate property in ASF API 2020-10-18 20:29:56 +02:00
JustArchi
deb886066b Misc 2020-10-14 14:24:53 +02:00
JustArchi
e1e4f9a8b4 Misc kestrel improvements 2020-10-07 19:49:06 +02:00
Vitaliy
eb7889e206 Add support for custom reverse proxy endpoints (#2003)
* Add support for custom reverse proxy endpoints

* Fix missing string.Format, use KnownNetworks instead of KnownProxies

* Misc
2020-10-07 19:34:58 +02:00
JustArchi
9489de5d95 Update Startup.cs 2020-09-17 08:53:09 +00:00
JustArchi
42f388e370 Closes #1950 2020-09-05 12:51:03 +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
e21994d54c Remove deprecated endpoints 2020-08-20 16:11:10 +02:00
JustArchi
1763a109c4 Move new handle under /Confirmations root 2020-08-10 14:57:04 +02:00
JustArchi
f57b5a2166 Use unified name instead of full name
Handles Class<T> better
2020-08-10 14:42:50 +02:00
JustArchi
7210e6b86c Misc 2020-08-10 14:04:06 +02:00
JustArchi
6b241d7439 Maintain backwards compatibility 2020-08-10 14:02:28 +02:00
JustArchi
833995ca61 Fix swaggergen generation
By avoiding a possibility of multiple conflicting types having the same name.

I'm not sure why this isn't the default behaviour, seems silly to me.
2020-08-10 13:41:07 +02:00
JustArchi
40531e9554 Misc
damn sneaky boi
2020-08-10 13:25:46 +02:00
JustArchi
7a5a9c8a51 Enhance TwoFactorAuthentication/Confirmations IPC API by allowing to specify additional parameters 2020-08-10 13:24:12 +02:00
JustArchi
59c743ca8d Use Version in ASFResponse
This is non-breaking, version is already serialized as string by default
2020-07-19 12:54:15 +02:00
JustArchi
01027e4f35 How about NOT reinventing the wheel? 2020-07-19 00:50:19 +02:00
JustArchi
4d675f579d Correct netf builds to serialize version objects as strings
.NET Core builds are already doing that by default
2020-07-19 00:38:05 +02:00
JustArchi
f838b3389b Bullet-proofing 2020-06-25 17:42:49 +02:00
JustArchi
73885f117a Simply x-definition 2020-06-25 17:36:05 +02:00
JustArchi
0bde6ed45f Implement EnumSchemaFilter for swagger 2020-06-25 17:07:58 +02:00
JustArchi
f550d65897 Append flags format to flags enum types in swagger 2020-06-25 15:40:04 +02:00
JustArchi
5246b2b82d Always serialize default values in API case, and never in save case 2020-06-25 14:05:39 +02:00
JustArchi
6e99d5beed Start using StringEnumConverter
In preparation for new ASF-ui code
2020-06-24 23:34:57 +02:00
JustArchi
69936d55b6 Add GET /Api/Plugins endpoint,
In regards to https://github.com/JustArchiNET/ASF-ui/issues/1015
2020-06-24 20:54:41 +02:00