[#4] infrastructure and sample Client Cut
Signed-off-by: Pavel Gross <p.gross@yadro.com>
This commit is contained in:
parent
0c4723c705
commit
545e647d7b
22 changed files with 717 additions and 193 deletions
|
@ -1,5 +1,6 @@
|
|||
using System;
|
||||
using System.Security.Cryptography;
|
||||
using System.Threading.Tasks;
|
||||
using FrostFS.Container;
|
||||
using FrostFS.Netmap;
|
||||
using FrostFS.Object;
|
||||
|
@ -25,7 +26,12 @@ public partial class Client: IFrostFSClient
|
|||
private ObjectService.ObjectServiceClient? _objectServiceClient;
|
||||
private SessionService.SessionServiceClient? _sessionServiceClient;
|
||||
|
||||
public Client(string key, string host)
|
||||
public static IFrostFSClient GetInstance(string key, string host)
|
||||
{
|
||||
return new Client(key, host);
|
||||
}
|
||||
|
||||
private Client(string key, string host)
|
||||
{
|
||||
// TODO: Развязать клиент и реализацию GRPC
|
||||
_key = key.LoadWif();
|
||||
|
@ -37,7 +43,7 @@ public partial class Client: IFrostFSClient
|
|||
InitSessionClient();
|
||||
CheckFrostFsVersionSupport();
|
||||
}
|
||||
|
||||
|
||||
private async void CheckFrostFsVersionSupport()
|
||||
{
|
||||
var localNodeInfo = await GetLocalNodeInfoAsync();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue