Files
SteamTools/System.Application.SteamTools.Client.Desktop/Services/Implementation/PlatformToastImpl.cs
T
2021-03-08 17:10:30 +08:00

19 lines
556 B
C#

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);
}
}