mirror of
https://github.com/status-im/nft-faucet.git
synced 2025-02-23 12:08:32 +00:00
20 lines
374 B
C#
20 lines
374 B
C#
namespace NftFaucet.Infrastructure.Services;
|
|
|
|
public class RefreshMediator
|
|
{
|
|
public delegate void StateChangedDelegate();
|
|
public event StateChangedDelegate StateChanged;
|
|
|
|
public void NotifyStateHasChangedSafe()
|
|
{
|
|
try
|
|
{
|
|
StateChanged?.Invoke();
|
|
}
|
|
catch (Exception)
|
|
{
|
|
// ignored
|
|
}
|
|
}
|
|
}
|