mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-02 12:07:44 +08:00
6662870ac8
Co-authored-by: James Yeung <shunjiey@hotmail.com>
22 lines
548 B
C#
22 lines
548 B
C#
using Microsoft.AspNetCore.Components;
|
|
|
|
namespace AntDesign.Tests
|
|
{
|
|
public class TestNavigationManager : NavigationManager
|
|
{
|
|
public delegate void NavigatedCallback(string uri, bool forceLoad);
|
|
|
|
public TestNavigationManager()
|
|
{
|
|
Initialize("http://localhost/", "http://localhost/");
|
|
}
|
|
|
|
protected override void NavigateToCore(string uri, bool forceLoad)
|
|
{
|
|
Navigated?.Invoke(uri, forceLoad);
|
|
}
|
|
|
|
public event NavigatedCallback Navigated;
|
|
}
|
|
}
|