Skip to content

Commit

Permalink
Improved INavigatedFrom interface to be asynchronus #25 #29
Browse files Browse the repository at this point in the history
  • Loading branch information
LeftTwixWand committed Dec 22, 2022
1 parent b974601 commit c04a4b3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -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();
}
6 changes: 3 additions & 3 deletions src/Inventory.Application/Services/Navigation/INavigatedTo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

namespace Inventory.Application.Services.Navigation;

public interface INavigatedTo<TParameter>
where TParameter : notnull
public interface INavigatedTo<T>
where T : notnull
{
Task OnNavigatedTo(TParameter parameter);
Task OnNavigatedTo(T parameter);
}

public interface INavigatedTo : INavigatedTo<object>
Expand Down

0 comments on commit c04a4b3

Please sign in to comment.