Commit Graph
24 Commits
Author SHA1 Message Date
Kenneth SkovhedeandGitHub 9464caf622 Feature/update license 2025 (#5851)
* Fixed some minor whitespace issues

* Updated all copyright to 2025
2025-01-07 09:40:39 +01:00
Marcelo Ceccon 611e28fafc Fixes to the multiple instance detection system
Exception was bundled in the innerexception and thus the catch statement was not functioning as expected.

Additionally adding ? operator to the  ApplicationExitEvent ServerStartedEvent events.
2024-10-03 10:11:38 +02:00
Kenneth Skovhede 23d74d4e18 Minor tweaks to the logic around starting the hosted instance from the TrayIcon 2024-09-07 08:25:16 +02:00
Kenneth Skovhede addb24a8ed When the server crashes, retain the original stack trace. 2024-08-14 16:09:29 +02:00
Kenneth Skovhede 9f79025744 Removed HttpServer.
Re-implemented everything using ASP.NET.
Changed some requests to use JSON instead of FORM data.
Some work towards deleting the FIXMEGlobal instance.
Auth is missing, XSRF does not work correctly.
2024-06-07 15:56:43 +02:00
Kenneth Skovhede 473c6cbbb8 Merge commit '4f577c65a4d8806f79637c50c21ca3a683c5a07a' into feature/kestrel-avalonia-upgrade 2024-03-04 12:21:53 +01:00
Kenneth Skovhede 40dd3c6816 Updated all license mentions to MIT 2024-02-28 15:45:30 +01:00
Thomas Suckow 6fd696a661 Missed a thread abort 2021-04-10 13:43:19 -07:00
Kenneth Hsu f12858e6a5 Mark fields that shouldn't be reassigned as readonly.
This makes it explicit at compile-time that these fields should not be
reassigned outside the constructor.
2018-05-25 10:04:52 -07:00
Kenneth Skovhede 842fd96543 Implemented a new logging system that is more transparent and allows a more granular way of picking log messages.
Added ID's to each log message and each exception to allow later introduction of a Knowledgebase service that explains each error in more detail.
2018-03-15 09:12:34 +01:00
Tyler Gill 83a1dcfb64 Replace all instances of InvariantCultureIgnoreCase with OrdinalIgnoreCase in string comparisons.
InvariantCulture is useful when comparing / sorting human language strings in a culturely correct way. It handles things like accented letters in a way that makes sense to humans (e.g., 'a' should be sorted next to 'á', rather than after 'z').
Ordinal looks just at the raw code points of the characters. As such, it is recommended for use in cases when comparing system strings (file paths, command line parameters, config settings, etc.). Since it doesn't need to use the culture specific sorting rules, this method can often be faster.

For more information, see https://stackoverflow.com/questions/492799/difference-between-invariantculture-and-ordinal-string-comparison (and other related questions)
2017-09-18 23:55:08 -06:00
Kenneth Skovhede 008e14d880 Added a catch handler to improve the reported errors that could happen if multiple things fail during startup 2017-02-28 12:32:11 +01:00
Kenneth Skovhede a029890409 Implemented better default error messsages 2017-01-09 11:35:38 +01:00
Kenneth Skovhede 4a808f8821 Fixed an issue with Building in VS 2010 2014-07-17 23:36:04 +02:00
Kenneth Skovhede c91fdc16ac Fixed the hostedinstancekeeper hiding the real exceptions 2014-07-08 01:38:31 +02:00
Kenneth Skovhede fe81851313 Added support for detecting when the server shuts down 2014-07-02 12:05:09 +02:00
Kenneth Skovhede 6203ed849c Major refactor of the webserver
Added support for setting listening interface for the webserver
Added support for starting the webserver with a password
2014-06-27 13:23:05 +02:00
Kenneth Skovhede 2db2e8f339 Added support code for probing multiple sockets when starting the web-server in hosted mode 2013-12-07 15:24:57 +01:00
kenneth@hexad.dk ec34606aed Updated robustness of server startup as hosted instance
git-svn-id: https://duplicati.googlecode.com/svn/trunk@1532 59da171f-624f-0410-aa54-27559c288bec
2013-02-27 14:23:17 +00:00
kenneth@hexad.dk 11c8f232b7 Fixed a quit problem.
Changed the status reporting method to not include status for the current running backup.
That will be implemented with a separate call so the tray icon can reduce the number of requests.

git-svn-id: https://duplicati.googlecode.com/svn/trunk@1332 59da171f-624f-0410-aa54-27559c288bec
2012-06-06 12:58:27 +00:00
kenneth@hexad.dk a93c66555b Added logging and reporting of metadata to UI
git-svn-id: https://duplicati.googlecode.com/svn/trunk@1280 59da171f-624f-0410-aa54-27559c288bec
2012-05-14 20:15:27 +00:00
kenneth@hexad.dk eeee931ea0 All tray icons are now working.
This changes all implementations to run off the TrayIconBase, so there is only a single place to maintain the tray icon and menus.
WinForms and Gtk has been updated to use this new implementation.
The ApplicationIndicator has been added so the TrayIcon now shows under Ubuntu Unity as well.
Cocoa support has been added so there is now a NSStatusItem. In order to debug this, a special MonoDevelop-MonoMac project has been added, but this is not used in the solution. The project just loads the regular implementation, but the project builds a .app package and debugs from it. Everything should build on a stock Windows machine with VS, and Ubuntu/OSX with MonoDevelop (needs WinForms to build, but not to run).

The TrayIcon icons are now limited to Idle,Paused,Running and an Error/Warning notifier overlay, giving a total of six icons.
The graphics needs to be updated to reflect this, and the server SuggestedStatusIcon should be changed to only output one of these states.

git-svn-id: https://duplicati.googlecode.com/svn/branches/v2.0@1039 59da171f-624f-0410-aa54-27559c288bec
2011-11-28 11:05:42 +00:00
kenneth@hexad.dk 7432401bc1 Fixed a Gtk tray icon running of the http server, simplified some reporting from the server to reduce the amount of logic in each tray icon implementation.
Cocoa -> You are next!

git-svn-id: https://duplicati.googlecode.com/svn/branches/v2.0@1032 59da171f-624f-0410-aa54-27559c288bec
2011-11-23 20:52:28 +00:00
kenneth@hexad.dk 933a61b954 First version of a Windows TrayIcon working against a http server.
git-svn-id: https://duplicati.googlecode.com/svn/branches/v2.0@1026 59da171f-624f-0410-aa54-27559c288bec
2011-11-21 22:28:20 +00:00