Skip to content

Commit 8288f16

Browse files
committed
Fixes
1 parent fd894e1 commit 8288f16

File tree

133 files changed

+1592
-195
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

133 files changed

+1592
-195
lines changed

src/Neo.FileStorage.API/EnumJsonConverter.cs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,19 @@
1+
// Copyright (C) 2015-2025 The Neo Project.
2+
//
3+
// EnumJsonConverter.cs file belongs to the neo project and is free
4+
// software distributed under the MIT software license, see the
5+
// accompanying file LICENSE in the main directory of the
6+
// repository or http://www.opensource.org/licenses/mit-license.php
7+
// for more details.
8+
//
9+
// Redistribution and use in source and binary forms with or without
10+
// modifications are permitted.
11+
112
#nullable enable
213

14+
using Newtonsoft.Json;
315
using System;
416
using System.Linq;
5-
using Newtonsoft.Json;
617

718
namespace Neo.FileStorage.API
819
{

src/Neo.FileStorage.API/accounting/Extension.Message.cs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
1-
using Google.Protobuf;
1+
// Copyright (C) 2015-2025 The Neo Project.
2+
//
3+
// Extension.Message.cs file belongs to the neo project and is free
4+
// software distributed under the MIT software license, see the
5+
// accompanying file LICENSE in the main directory of the
6+
// repository or http://www.opensource.org/licenses/mit-license.php
7+
// for more details.
8+
//
9+
// Redistribution and use in source and binary forms with or without
10+
// modifications are permitted.
11+
12+
using Google.Protobuf;
213
using Neo.FileStorage.API.Session;
314

415
namespace Neo.FileStorage.API.Accounting

src/Neo.FileStorage.API/acl/Extantion.BasicAcl.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
// Copyright (C) 2015-2025 The Neo Project.
2+
//
3+
// Extantion.BasicAcl.cs file belongs to the neo project and is free
4+
// software distributed under the MIT software license, see the
5+
// accompanying file LICENSE in the main directory of the
6+
// repository or http://www.opensource.org/licenses/mit-license.php
7+
// for more details.
8+
//
9+
// Redistribution and use in source and binary forms with or without
10+
// modifications are permitted.
11+
112
using System.Collections.Generic;
213

314
namespace Neo.FileStorage.API.Acl

src/Neo.FileStorage.API/acl/Extension.EACLRecord.Filter.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
// Copyright (C) 2015-2025 The Neo Project.
2+
//
3+
// Extension.EACLRecord.Filter.cs file belongs to the neo project and is free
4+
// software distributed under the MIT software license, see the
5+
// accompanying file LICENSE in the main directory of the
6+
// repository or http://www.opensource.org/licenses/mit-license.php
7+
// for more details.
8+
//
9+
// Redistribution and use in source and binary forms with or without
10+
// modifications are permitted.
111

212
namespace Neo.FileStorage.API.Acl
313
{

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

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,19 @@
1+
// Copyright (C) 2015-2025 The Neo Project.
2+
//
3+
// CallOptions.cs file belongs to the neo project and is free
4+
// software distributed under the MIT software license, see the
5+
// accompanying file LICENSE in the main directory of the
6+
// repository or http://www.opensource.org/licenses/mit-license.php
7+
// for more details.
8+
//
9+
// Redistribution and use in source and binary forms with or without
10+
// modifications are permitted.
11+
12+
using Neo.FileStorage.API.Acl;
13+
using Neo.FileStorage.API.Session;
114
using System;
215
using System.Collections.Generic;
316
using System.Security.Cryptography;
4-
using Neo.FileStorage.API.Acl;
5-
using Neo.FileStorage.API.Session;
617

718
namespace Neo.FileStorage.API.Client
819
{

src/Neo.FileStorage.API/client/Client.Accounting.cs

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
1-
using System;
2-
using System.Threading;
3-
using System.Threading.Tasks;
1+
// Copyright (C) 2015-2025 The Neo Project.
2+
//
3+
// Client.Accounting.cs file belongs to the neo project and is free
4+
// software distributed under the MIT software license, see the
5+
// accompanying file LICENSE in the main directory of the
6+
// repository or http://www.opensource.org/licenses/mit-license.php
7+
// for more details.
8+
//
9+
// Redistribution and use in source and binary forms with or without
10+
// modifications are permitted.
11+
412
using Neo.FileStorage.API.Accounting;
513
using Neo.FileStorage.API.Cryptography;
614
using Neo.FileStorage.API.Refs;
15+
using System;
16+
using System.Threading;
17+
using System.Threading.Tasks;
718

819
namespace Neo.FileStorage.API.Client
920
{
@@ -19,9 +30,9 @@ public sealed partial class Client
1930
Body = new BalanceRequest.Types.Body
2031
{
2132
OwnerId = owner,
22-
}
33+
},
34+
MetaHeader = opts.GetRequestMetaHeader()
2335
};
24-
req.MetaHeader = opts.GetRequestMetaHeader();
2536
opts.Key.Sign(req);
2637
return await GetBalance(req, opts.Deadline, context);
2738
}

src/Neo.FileStorage.API/client/Client.Container.cs

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,26 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Security.Cryptography;
5-
using System.Threading;
6-
using System.Threading.Tasks;
1+
// Copyright (C) 2015-2025 The Neo Project.
2+
//
3+
// Client.Container.cs file belongs to the neo project and is free
4+
// software distributed under the MIT software license, see the
5+
// accompanying file LICENSE in the main directory of the
6+
// repository or http://www.opensource.org/licenses/mit-license.php
7+
// for more details.
8+
//
9+
// Redistribution and use in source and binary forms with or without
10+
// modifications are permitted.
11+
712
using Google.Protobuf;
813
using Neo.FileStorage.API.Acl;
914
using Neo.FileStorage.API.Container;
1015
using Neo.FileStorage.API.Cryptography;
1116
using Neo.FileStorage.API.Refs;
1217
using Neo.FileStorage.API.Session;
18+
using System;
19+
using System.Collections.Generic;
20+
using System.Linq;
21+
using System.Security.Cryptography;
22+
using System.Threading;
23+
using System.Threading.Tasks;
1324
using UsedSpaceAnnouncement = Neo.FileStorage.API.Container.AnnounceUsedSpaceRequest.Types.Body.Types.Announcement;
1425

1526
namespace Neo.FileStorage.API.Client

src/Neo.FileStorage.API/client/Client.Netmap.cs

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,19 @@
1+
// Copyright (C) 2015-2025 The Neo Project.
2+
//
3+
// Client.Netmap.cs file belongs to the neo project and is free
4+
// software distributed under the MIT software license, see the
5+
// accompanying file LICENSE in the main directory of the
6+
// repository or http://www.opensource.org/licenses/mit-license.php
7+
// for more details.
8+
//
9+
// Redistribution and use in source and binary forms with or without
10+
// modifications are permitted.
11+
12+
using Neo.FileStorage.API.Cryptography;
13+
using Neo.FileStorage.API.Netmap;
114
using System;
215
using System.Threading;
316
using System.Threading.Tasks;
4-
using Neo.FileStorage.API.Cryptography;
5-
using Neo.FileStorage.API.Netmap;
617

718
namespace Neo.FileStorage.API.Client
819
{
@@ -14,9 +25,9 @@ public async Task<NodeInfo> LocalNodeInfo(CallOptions options = null, Cancellati
1425
CheckOptions(opts);
1526
var req = new LocalNodeInfoRequest
1627
{
17-
Body = new LocalNodeInfoRequest.Types.Body { }
28+
Body = new LocalNodeInfoRequest.Types.Body { },
29+
MetaHeader = opts.GetRequestMetaHeader()
1830
};
19-
req.MetaHeader = opts.GetRequestMetaHeader();
2031
opts.Key.Sign(req);
2132

2233
return await LocalNodeInfo(req, opts.Deadline, context);
@@ -77,9 +88,9 @@ public async Task<NetworkInfo> NetworkInfo(CallOptions options = null, Cancellat
7788
CheckOptions(opts);
7889
var req = new NetworkInfoRequest
7990
{
80-
Body = new NetworkInfoRequest.Types.Body { }
91+
Body = new NetworkInfoRequest.Types.Body { },
92+
MetaHeader = opts.GetRequestMetaHeader()
8193
};
82-
req.MetaHeader = opts.GetRequestMetaHeader();
8394
opts.Key.Sign(req);
8495
var resp = await NetmapClient.NetworkInfoAsync(req, cancellationToken: context);
8596
ProcessResponse(resp);

src/Neo.FileStorage.API/client/Client.Object.cs

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,27 @@
1+
// Copyright (C) 2015-2025 The Neo Project.
2+
//
3+
// Client.Object.cs file belongs to the neo project and is free
4+
// software distributed under the MIT software license, see the
5+
// accompanying file LICENSE in the main directory of the
6+
// repository or http://www.opensource.org/licenses/mit-license.php
7+
// for more details.
8+
//
9+
// Redistribution and use in source and binary forms with or without
10+
// modifications are permitted.
11+
12+
using Google.Protobuf;
13+
using Grpc.Core;
14+
using Neo.FileStorage.API.Cryptography;
15+
using Neo.FileStorage.API.Object;
16+
using Neo.FileStorage.API.Refs;
17+
using Neo.FileStorage.API.Session;
118
using System;
219
using System.Collections.Generic;
320
using System.IO;
421
using System.Linq;
522
using System.Security.Cryptography;
623
using System.Threading;
724
using System.Threading.Tasks;
8-
using Google.Protobuf;
9-
using Grpc.Core;
10-
using Neo.FileStorage.API.Cryptography;
11-
using Neo.FileStorage.API.Object;
12-
using Neo.FileStorage.API.Refs;
13-
using Neo.FileStorage.API.Session;
1425

1526
namespace Neo.FileStorage.API.Client
1627
{

src/Neo.FileStorage.API/client/Client.Option.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
// Copyright (C) 2015-2025 The Neo Project.
2+
//
3+
// Client.Option.cs file belongs to the neo project and is free
4+
// software distributed under the MIT software license, see the
5+
// accompanying file LICENSE in the main directory of the
6+
// repository or http://www.opensource.org/licenses/mit-license.php
7+
// for more details.
8+
//
9+
// Redistribution and use in source and binary forms with or without
10+
// modifications are permitted.
11+
112
using Neo.FileStorage.API.Session;
213
using System;
314

0 commit comments

Comments
 (0)