You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
478 B
23 lines
478 B
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();
|
|
}
|
|
}
|
|
|