mirror of
https://github.com/BeyondDimension/SteamTools.git
synced 2026-10-27 04:41:15 +08:00
security fix
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
namespace System.Application.Services.Implementation
|
||||
{
|
||||
internal sealed class PlatformToastImpl : ToastImpl
|
||||
{
|
||||
public PlatformToastImpl(IToastIntercept intercept) : base(intercept)
|
||||
{
|
||||
}
|
||||
|
||||
protected override void PlatformShow(string text, int duration)
|
||||
{
|
||||
ToastService.Current.Notify(text);
|
||||
}
|
||||
|
||||
internal static IServiceCollection TryAddToast(IServiceCollection services)
|
||||
=> TryAddToast<PlatformToastImpl>(services);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user