* 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.
24 lines
478 B
C#
24 lines
478 B
C#
using System;
|
|
|
|
namespace BlazorAdmin.Helpers;
|
|
|
|
internal sealed class RefreshBroadcast
|
|
{
|
|
private static readonly Lazy<RefreshBroadcast>
|
|
Lazy =
|
|
new Lazy<RefreshBroadcast>
|
|
(() => new RefreshBroadcast());
|
|
|
|
public static RefreshBroadcast Instance => Lazy.Value;
|
|
|
|
private RefreshBroadcast()
|
|
{
|
|
}
|
|
|
|
public event Action RefreshRequested;
|
|
public void CallRequestRefresh()
|
|
{
|
|
RefreshRequested?.Invoke();
|
|
}
|
|
}
|