From c04a4b32cb618d7808820baf2facd0c6c2865f5c Mon Sep 17 00:00:00 2001 From: Vladyslav Horbachov Date: Thu, 22 Dec 2022 23:06:00 +0200 Subject: [PATCH] Improved INavigatedFrom interface to be asynchronus #25 #29 --- .../Services/Navigation/INavigatedFrom.cs | 6 ++++-- .../Services/Navigation/INavigatedTo.cs | 6 +++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/Inventory.Application/Services/Navigation/INavigatedFrom.cs b/src/Inventory.Application/Services/Navigation/INavigatedFrom.cs index 0c19e62..61c9be3 100644 --- a/src/Inventory.Application/Services/Navigation/INavigatedFrom.cs +++ b/src/Inventory.Application/Services/Navigation/INavigatedFrom.cs @@ -1,6 +1,8 @@ -namespace Inventory.Application.Services.Navigation; +using System.Threading.Tasks; + +namespace Inventory.Application.Services.Navigation; public interface INavigatedFrom { - void OnNavigatedFrom(); + Task OnNavigatedFrom(); } \ No newline at end of file diff --git a/src/Inventory.Application/Services/Navigation/INavigatedTo.cs b/src/Inventory.Application/Services/Navigation/INavigatedTo.cs index bc2668a..79a7821 100644 --- a/src/Inventory.Application/Services/Navigation/INavigatedTo.cs +++ b/src/Inventory.Application/Services/Navigation/INavigatedTo.cs @@ -2,10 +2,10 @@ namespace Inventory.Application.Services.Navigation; -public interface INavigatedTo - where TParameter : notnull +public interface INavigatedTo + where T : notnull { - Task OnNavigatedTo(TParameter parameter); + Task OnNavigatedTo(T parameter); } public interface INavigatedTo : INavigatedTo