Files
mROA/Example.Backend/LoadTestImp.cs
T

37 lines
741 B
C#
Raw Normal View History

using System;
2025-02-22 09:28:59 +03:00
using System.Threading;
using System.Threading.Tasks;
using Example.Shared;
using mROA.Implementation.Attributes;
namespace Example.Backend
{
[SharedObjectSingleton]
public class LoadTestImp : ILoadTest
{
public int Next(int last)
{
return last + 1;
}
public int Last(int next)
{
return next - 1;
}
public void C()
{
throw new NotImplementedException();
}
public void A()
{
throw new NotImplementedException();
}
2025-02-22 09:28:59 +03:00
public async Task AsyncTest(CancellationToken token)
{
await Task.Delay(TimeSpan.FromSeconds(5), token);
}
}
}