Skip to content

Commit 90fa242

Browse files
author
ZhangTao1596
committed
v3.5.0
1 parent 22efdc6 commit 90fa242

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

src/Neo.FileStorage.API/Neo.FileStorage.API.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<Copyright>2020-2021 The Neo Project</Copyright>
55
<AssemblyTitle>Neo.FileStorage.API</AssemblyTitle>
6-
<Version>0.1.2</Version>
6+
<Version>3.5.0</Version>
77
<Authors>The Neo Project</Authors>
88
<TargetFramework>net7.0</TargetFramework>
99
<PackageId>NeoFS.API</PackageId>
248 KB
Binary file not shown.

src/Neo.FileStorage.API/client/ObjectReader.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace Neo.FileStorage.API.Client
66
{
7-
public class ObjectReader
7+
public sealed class ObjectReader : IDisposable
88
{
99
public AsyncServerStreamingCall<GetResponse> Call { get; init; }
1010

@@ -32,5 +32,10 @@ public Object.Object ReadHeader()
3232
throw new InvalidOperationException("unexpect message type");
3333
return (response.Body.Chunk.ToByteArray(), true);
3434
}
35+
36+
public void Dispose()
37+
{
38+
Call?.Dispose();
39+
}
3540
}
3641
}

src/Neo.FileStorage.API/client/PutStream.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77

88
namespace Neo.FileStorage.API.Client
99
{
10-
public class PutStream : IClientStream, IDisposable
10+
public sealed class PutStream : IClientStream, IDisposable
1111
{
1212
public AsyncClientStreamingCall<PutRequest, PutResponse> Call { get; init; }
1313

1414
public void Dispose()
1515
{
16-
Call.Dispose();
16+
Call?.Dispose();
1717
}
1818

1919
public async Task Write(IRequest request)

0 commit comments

Comments
 (0)