[#28] Client: Apply code optimizations
Signed-off-by: Pavel Gross <p.gross@yadro.com>
This commit is contained in:
parent
766f61a5f7
commit
749000a090
57 changed files with 845 additions and 1116 deletions
|
@ -1,13 +1,14 @@
|
|||
using System;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Security.Cryptography;
|
||||
|
||||
using Grpc.Core.Interceptors;
|
||||
using Grpc.Net.Client;
|
||||
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace FrostFS.SDK.Client;
|
||||
|
||||
// wrapperPrm is params to create clientWrapper.
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Performance", "CA1815:Override equals and operator equals on value types", Justification = "<Pending>")]
|
||||
public struct WrapperPrm
|
||||
{
|
||||
|
@ -15,7 +16,7 @@ public struct WrapperPrm
|
|||
|
||||
internal string Address { get; set; }
|
||||
|
||||
internal ECDsa? Key { get; set; }
|
||||
internal ECDsa Key { get; set; }
|
||||
|
||||
internal ulong DialTimeout { get; set; }
|
||||
|
||||
|
@ -30,5 +31,9 @@ public struct WrapperPrm
|
|||
internal GrpcChannelOptions GrpcChannelOptions { get; set; }
|
||||
|
||||
internal ulong GracefulCloseOnSwitchTimeout { get; set; }
|
||||
|
||||
internal Action<CallStatistics>? Callback { get; set; }
|
||||
|
||||
internal Collection<Interceptor>? Interceptors { get; set; }
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue