Web server - Added web server service

UI - Added remote management for bringing to foreground, restarting and shutting down
UI - Simplified services namespaces
This commit is contained in:
Robert committed 2021-01-27 20:52:51 +01:00
1 parent 7d7a985d35
commit 28e1532064
31 files changed
+351 -59

No files matched your search

@@ -5,7 +5,7 @@ namespace Artemis.UI.Shared.Services
{
internal class MessageService : IMessageService
{
private INotificationProvider _notificationProvider;
private INotificationProvider? _notificationProvider;
public ISnackbarMessageQueue MainMessageQueue { get; }
public MessageService(ISnackbarMessageQueue mainMessageQueue)
@@ -74,20 +74,20 @@ namespace Artemis.UI.Shared.Services
/// <inheritdoc />
public void ShowNotification(string title, string message)
{
_notificationProvider.ShowNotification(title, message, PackIconKind.None);
_notificationProvider?.ShowNotification(title, message, PackIconKind.None);
}
/// <inheritdoc />
public void ShowNotification(string title, string message, PackIconKind icon)
{
_notificationProvider.ShowNotification(title, message, icon);
_notificationProvider?.ShowNotification(title, message, icon);
}
/// <inheritdoc />
public void ShowNotification(string title, string message, string icon)
{
Enum.TryParse(typeof(PackIconKind), icon, true, out object? iconKind);
_notificationProvider.ShowNotification(title, message, (PackIconKind) (iconKind ?? PackIconKind.None));
_notificationProvider?.ShowNotification(title, message, (PackIconKind) (iconKind ?? PackIconKind.None));
}
}
}
@@ -66,14 +66,12 @@ namespace Artemis.UI.Shared.Services
public void OpenMainWindow()
{
IsMainWindowOpen = true;
OnMainWindowOpened();
_mainWindowManager?.OpenMainWindow();
}
public void CloseMainWindow()
{
IsMainWindowOpen = false;
OnMainWindowClosed();
_mainWindowManager?.CloseMainWindow();
}
public event EventHandler? MainWindowOpened;
+14
View File
@@ -142,6 +142,14 @@
"System.Xml.XmlDocument": "4.3.0"
}
},
"EmbedIO": {
"type": "Transitive",
"resolved": "3.4.3",
"contentHash": "YM6hpZNAfvbbixfG9T4lWDGfF0D/TqutbTROL4ogVcHKwPF1hp+xS3ABwd3cxxTxvDFkj/zZl57QgWuFA8Igxw==",
"dependencies": {
"Unosquare.Swan.Lite": "3.0.0"
}
},
"HidSharp": {
"type": "Transitive",
"resolved": "2.1.0",
@@ -1305,11 +1313,17 @@
"System.Xml.ReaderWriter": "4.3.0"
}
},
"Unosquare.Swan.Lite": {
"type": "Transitive",
"resolved": "3.0.0",
"contentHash": "noPwJJl1Q9uparXy1ogtkmyAPGNfSGb0BLT1292nFH1jdMKje6o2kvvrQUvF9Xklj+IoiAI0UzF6Aqxlvo10lw=="
},
"artemis.core": {
"type": "Project",
"dependencies": {
"Artemis.Storage": "1.0.0",
"Ben.Demystifier": "0.1.6",
"EmbedIO": "3.4.3",
"HidSharp": "2.1.0",
"Humanizer.Core": "2.8.26",
"LiteDB": "5.0.9",