Add nsi service handler

This commit is contained in:
2025-08-14 10:41:14 +09:00
parent b8710fd00a
commit de36ea2a13
31 changed files with 9576 additions and 1 deletions

View File

@ -0,0 +1,28 @@
using System.Threading;
using System.Threading.Tasks;
namespace Hcs.ClientApi.NsiApi
{
public class HcsNsiApi
{
public HcsClientConfig Config { get; private set; }
public HcsNsiApi(HcsClientConfig config)
{
Config = config;
}
public async Task<object[]> GetNsiItem(int regNum, CancellationToken token = default)
{
try
{
var method = new HcsMethodExportNsi(Config);
return await method.GetNsiItem(regNum, token);
}
catch (HcsNoResultsRemoteException)
{
return [];
}
}
}
}