NBXplorer/NBXplorer.Client/NotificationSessionBase.cs
2023-11-14 18:11:52 +09:00

16 lines
402 B
C#

using NBXplorer.Models;
using System.Threading;
using System.Threading.Tasks;
namespace NBXplorer
{
public abstract class NotificationSessionBase
{
public NewEventBase NextEvent(CancellationToken cancellation = default)
{
return NextEventAsync(cancellation).GetAwaiter().GetResult();
}
public abstract Task<NewEventBase> NextEventAsync(CancellationToken cancellation = default);
}
}