mirror of
https://github.com/BeyondDimension/SteamTools.git
synced 2026-10-24 02:39:46 +08:00
19 lines
556 B
C#
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);
|
|
}
|
|
} |