[#17] Client: Add extra parameter #18

Merged
PavelGrossSpb merged 2 commits from PavelGrossSpb/frostfs-sdk-csharp:misc/extra_parameters into master 2024-09-04 19:51:24 +00:00
4 changed files with 6 additions and 22 deletions
Showing only changes of commit 816e1eb2f1 - Show all commits

View file

@ -18,9 +18,4 @@
<ProjectReference Include="..\FrostFS.SDK.Cryptography\FrostFS.SDK.Cryptography.csproj" />
</ItemGroup>
<ItemGroup>
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
<_Parameter1>FrostFS.SDK.ClientV2</_Parameter1>
</AssemblyAttribute>
</ItemGroup>
</Project>

View file

@ -36,7 +36,7 @@ public class FrostFsObject
/// </summary>
public ObjectId? ObjectId
{
get; internal set;
get; set;
}
/// <summary>

View file

@ -1,11 +1,6 @@
namespace FrostFS.SDK.ModelsV2;
public class SessionToken
public class SessionToken(byte[] token)
{
internal SessionToken(byte[] token)
{
Token = token;
}
public byte[] Token { get; private set; }
public byte[] Token { get; private set; } = token;
}

View file

@ -1,15 +1,9 @@
namespace FrostFS.SDK.ModelsV2;
public class Version
public class Version(int major, int minor)
{
public int Major { get; set; }
public int Minor { get; set; }
public Version(int major, int minor)
{
Major = major;
Minor = minor;
}
public int Major { get; set; } = major;
public int Minor { get; set; } = minor;
public bool IsSupported(Version version)
{