Add some initial navigation route handlers
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
namespace Toolkit.Foundation
|
||||
{
|
||||
public interface INavigationRouter : IInitializer
|
||||
{
|
||||
void Navigate(Navigate args);
|
||||
|
||||
void Register(string name, object route);
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,8 @@
|
||||
namespace Toolkit.Foundation
|
||||
using Mediator;
|
||||
|
||||
namespace Toolkit.Foundation
|
||||
{
|
||||
public record Navigate
|
||||
public record Navigate : IRequest
|
||||
{
|
||||
public Navigate(string name, params object?[] parameters)
|
||||
{
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
namespace Toolkit.Foundation
|
||||
using Mediator;
|
||||
|
||||
namespace Toolkit.Foundation
|
||||
{
|
||||
public record NavigateBack(object Route);
|
||||
public record NavigateBack(object Route) : IRequest;
|
||||
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
|
||||
namespace Toolkit.Foundation
|
||||
{
|
||||
//public class NavigateHandler : IRecipient<Navigate>
|
||||
//{
|
||||
// private readonly IMessenger messenger;
|
||||
|
||||
// public NavigateHandler(IMessenger messenger)
|
||||
// {
|
||||
// this.messenger = messenger;
|
||||
// }
|
||||
|
||||
// public void Receive(Navigate request)
|
||||
// {
|
||||
// messenger.Send(request);
|
||||
// }
|
||||
//}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
using Mediator;
|
||||
|
||||
namespace Toolkit.Foundation
|
||||
{
|
||||
public record NavigationRoute(string Name, object Route) : IRequest;
|
||||
}
|
||||
Reference in New Issue
Block a user