mirror of
https://github.com/valentincanonical/eShopOnWeb-chisel-demo.git
synced 2026-02-14 17:49:56 +00:00
* udated to .net6 * used the .net6 version RC2 * added editconfig. * App core new Scoped Namespaces style. * BlazorAdmin new Scoped Namespaces style. * Blazor Shared new Scoped Namespaces style. * Infra new Scoped Namespaces style. * public api new Scoped Namespaces style. * web new Scoped Namespaces style. * FunctionalTests new Scoped Namespaces style. * Integrational tests new Scoped Namespaces style. * unit tests new Scoped Namespaces style. * update github action. * update github action. * change the global.
26 lines
494 B
C#
26 lines
494 B
C#
using Microsoft.AspNetCore.Components;
|
|
|
|
namespace BlazorAdmin.Helpers;
|
|
|
|
public class BlazorComponent : ComponentBase
|
|
{
|
|
private readonly RefreshBroadcast _refresh = RefreshBroadcast.Instance;
|
|
|
|
protected override void OnInitialized()
|
|
{
|
|
_refresh.RefreshRequested += DoRefresh;
|
|
base.OnInitialized();
|
|
}
|
|
|
|
public void CallRequestRefresh()
|
|
{
|
|
_refresh.CallRequestRefresh();
|
|
}
|
|
|
|
private void DoRefresh()
|
|
{
|
|
StateHasChanged();
|
|
}
|
|
|
|
}
|