Add nsi service handler
This commit is contained in:
18
Hcs.TestApp/ClientDemo/NsiDemo.cs
Normal file
18
Hcs.TestApp/ClientDemo/NsiDemo.cs
Normal file
@ -0,0 +1,18 @@
|
||||
using Hcs.ClientApi;
|
||||
using System;
|
||||
|
||||
namespace Hcs.ClientDemo
|
||||
{
|
||||
public class NsiDemo
|
||||
{
|
||||
public static void DemoExportNsiItem(HcsClient client)
|
||||
{
|
||||
var result = client.Nsi.GetNsiItem(51).Result;
|
||||
Console.WriteLine($"Результат операции:\r\n");
|
||||
foreach (var obj in result)
|
||||
{
|
||||
Console.WriteLine(obj?.ToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -59,13 +59,15 @@ namespace Hcs.ClientDemo
|
||||
if (false) HouseManagementDemo.DemoExportOneContract(client);
|
||||
if (false) HouseManagementDemo.DemoExportContractTrees(client);
|
||||
if (false) HouseManagementDemo.DemoImportNewContract(client);
|
||||
if (true) HouseManagementDemo.DemoExportOrgRegistry(client);
|
||||
if (false) HouseManagementDemo.DemoExportOrgRegistry(client);
|
||||
|
||||
if (false) FileStoreDemo.DemoDownloadFile(client);
|
||||
if (false) FileStoreDemo.DemoGostHash(client);
|
||||
if (false) FileStoreDemo.DemoUploadFile(client);
|
||||
if (false) FileStoreDemo.DemoGetFileLength(client);
|
||||
if (false) FileStoreDemo.DemoGostHash(client);
|
||||
|
||||
if (true) NsiDemo.DemoExportNsiItem(client);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
@ -70,6 +70,7 @@
|
||||
<Compile Include="ClientDemo\DebtRequestsDemo.cs" />
|
||||
<Compile Include="ClientDemo\FileStoreDemo.cs" />
|
||||
<Compile Include="ClientDemo\HouseManagementDemo.cs" />
|
||||
<Compile Include="ClientDemo\NsiDemo.cs" />
|
||||
<Compile Include="ClientDemo\Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
|
||||
Reference in New Issue
Block a user