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 GetNsiItem(int regNum, CancellationToken token = default) { try { var method = new HcsMethodExportNsi(Config); return await method.GetNsiItem(regNum, token); } catch (HcsNoResultsRemoteException) { return []; } } } }