[#28] Client: Use external GRPC Channnel
Signed-off-by: Pavel Gross <p.gross@yadro.com>
This commit is contained in:
parent
9bb7b5eff8
commit
c9418a1894
27 changed files with 520 additions and 438 deletions
|
@ -2,6 +2,7 @@
|
|||
using System.Collections.ObjectModel;
|
||||
using System.Security.Cryptography;
|
||||
|
||||
using Grpc.Core;
|
||||
using Grpc.Core.Interceptors;
|
||||
using Grpc.Net.Client;
|
||||
|
||||
|
@ -10,7 +11,7 @@ using Microsoft.Extensions.Logging;
|
|||
namespace FrostFS.SDK.Client;
|
||||
|
||||
// InitParameters contains values used to initialize connection Pool.
|
||||
public class InitParameters
|
||||
public class InitParameters(Func<string, ChannelBase> grpcChannelFactory)
|
||||
{
|
||||
public ECDsa? Key { get; set; }
|
||||
|
||||
|
@ -39,4 +40,6 @@ public class InitParameters
|
|||
public Action<CallStatistics>? Callback { get; set; }
|
||||
|
||||
public Collection<Interceptor> Interceptors { get; } = [];
|
||||
|
||||
public Func<string, ChannelBase> GrpcChannelFactory { get; set; } = grpcChannelFactory;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue