[#24] Client: Implement pool part1 #31

Merged
PavelGrossSpb merged 3 commits from PavelGrossSpb/frostfs-sdk-csharp:poll into master 2024-11-20 15:44:04 +00:00
Showing only changes of commit bff8d67867 - Show all commits

View file

@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
@ -304,7 +305,7 @@ public partial class Pool : IFrostFSClient
);
}
private ClientWrapper Сonnection()
private ClientWrapper Connection()
{
foreach (var pool in InnerPools!)
{
@ -518,7 +519,7 @@ public partial class Pool : IFrostFSClient
public async Task<FrostFsNetmapSnapshot> GetNetmapSnapshotAsync(PrmNetmapSnapshot? args = null)
{
var client = Сonnection();
var client = Connection();
args ??= new();
args.Context.PoolErrorHandler = client.HandleError;
@ -528,7 +529,7 @@ public partial class Pool : IFrostFSClient
public async Task<FrostFsNodeInfo> GetNodeInfoAsync(PrmNodeInfo? args = null)
{
var client = Сonnection();
var client = Connection();
args ??= new();
args.Context.PoolErrorHandler = client.HandleError;
@ -538,7 +539,7 @@ public partial class Pool : IFrostFSClient
public async Task<NetworkSettings> GetNetworkSettingsAsync(PrmNetworkSettings? args = null)
{
var client = Сonnection();
var client = Connection();
args ??= new();
args.Context.PoolErrorHandler = client.HandleError;
@ -553,7 +554,7 @@ public partial class Pool : IFrostFSClient
throw new ArgumentNullException(nameof(args));
}
var client = Сonnection();
var client = Connection();
args.Context.PoolErrorHandler = client.HandleError;
@ -567,7 +568,7 @@ public partial class Pool : IFrostFSClient
throw new ArgumentNullException(nameof(args));
}
var client = Сonnection();
var client = Connection();
args.Context.PoolErrorHandler = client.HandleError;
@ -581,7 +582,7 @@ public partial class Pool : IFrostFSClient
throw new ArgumentNullException(nameof(args));
}
var client = Сonnection();
var client = Connection();
args.Context.PoolErrorHandler = client.HandleError;
@ -595,7 +596,7 @@ public partial class Pool : IFrostFSClient
throw new ArgumentNullException(nameof(args));
}
var client = Сonnection();
var client = Connection();
args.Context.PoolErrorHandler = client.HandleError;
@ -609,7 +610,7 @@ public partial class Pool : IFrostFSClient
throw new ArgumentNullException(nameof(args));
}
var client = Сonnection();
var client = Connection();
args.Context.PoolErrorHandler = client.HandleError;
@ -618,7 +619,7 @@ public partial class Pool : IFrostFSClient
public IAsyncEnumerable<FrostFsContainerId> ListContainersAsync(PrmContainerGetAll? args = null)
{
var client = Сonnection();
var client = Connection();
args ??= new();
args.Context.PoolErrorHandler = client.HandleError;
@ -633,7 +634,7 @@ public partial class Pool : IFrostFSClient
throw new ArgumentNullException(nameof(args));
}
var client = Сonnection();
var client = Connection();
args.Context.PoolErrorHandler = client.HandleError;
@ -647,7 +648,7 @@ public partial class Pool : IFrostFSClient
throw new ArgumentNullException(nameof(args));
}
var client = Сonnection();
var client = Connection();
args.Context.PoolErrorHandler = client.HandleError;
@ -661,7 +662,7 @@ public partial class Pool : IFrostFSClient
throw new ArgumentNullException(nameof(args));
}
var client = Сonnection();
var client = Connection();
args.Context.PoolErrorHandler = client.HandleError;
@ -675,7 +676,7 @@ public partial class Pool : IFrostFSClient
throw new ArgumentNullException(nameof(args));
}
var client = Сonnection();
var client = Connection();
args.Context.PoolErrorHandler = client.HandleError;
@ -689,7 +690,7 @@ public partial class Pool : IFrostFSClient
throw new ArgumentNullException(nameof(args));
}
var client = Сonnection();
var client = Connection();
args.Context.PoolErrorHandler = client.HandleError;
@ -703,7 +704,7 @@ public partial class Pool : IFrostFSClient
throw new ArgumentNullException(nameof(args));
}
var client = Сonnection();
var client = Connection();
args.Context.PoolErrorHandler = client.HandleError;
@ -717,7 +718,7 @@ public partial class Pool : IFrostFSClient
throw new ArgumentNullException(nameof(args));
}
var client = Сonnection();
var client = Connection();
args.Context.PoolErrorHandler = client.HandleError;
@ -731,7 +732,7 @@ public partial class Pool : IFrostFSClient
throw new ArgumentNullException(nameof(args));
}
var client = Сonnection();
var client = Connection();
args.Context.PoolErrorHandler = client.HandleError;
@ -740,7 +741,7 @@ public partial class Pool : IFrostFSClient
public async Task<Accounting.Decimal> GetBalanceAsync(PrmBalance? args)
{
var client = Сonnection();
var client = Connection();
args ??= new();
args.Context.PoolErrorHandler = client.HandleError;