[#26] All: Remove V2 from naming
Rename project, namespaces and class names Signed-off-by: Pavel Gross <p.gross@yadro.com>
This commit is contained in:
parent
c406df1a78
commit
766f61a5f7
219 changed files with 219 additions and 974 deletions
19
src/FrostFS.SDK.Client/Pool/MethodStatus.cs
Normal file
19
src/FrostFS.SDK.Client/Pool/MethodStatus.cs
Normal file
|
@ -0,0 +1,19 @@
|
|||
namespace FrostFS.SDK.Client;
|
||||
|
||||
public class MethodStatus(string name)
|
||||
{
|
||||
private readonly object _lock = new();
|
||||
|
||||
public string Name { get; } = name;
|
||||
|
||||
public StatusSnapshot Snapshot { get; set; } = new StatusSnapshot();
|
||||
|
||||
internal void IncRequests(ulong elapsed)
|
||||
{
|
||||
lock (_lock)
|
||||
{
|
||||
Snapshot.AllTime += elapsed;
|
||||
Snapshot.AllRequests++;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue