This is an automated email from the ASF dual-hosted git repository.
Xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/opendal.git
The following commit(s) were added to refs/heads/main by this push:
new 020ce08853 docs(bindings/dotnet): clarify when ReadOptions.Gap has no
effect (#9340)
020ce08853 is described below
commit 020ce088530c6d0504cf6791e181ba67b6052d6b
Author: Xuanwo <[email protected]>
AuthorDate: Sat Nov 28 17:25:20 2026 +0800
docs(bindings/dotnet): clarify when ReadOptions.Gap has no effect (#9340)
docs(bindings/dotnet): clarify when Gap has no effect
Refs #9334
---
bindings/dotnet/OpenDAL/Options/ReadOptions.cs | 2 +-
dev/src/generate/dotnet.rs | 10 +++++++++-
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/bindings/dotnet/OpenDAL/Options/ReadOptions.cs
b/bindings/dotnet/OpenDAL/Options/ReadOptions.cs
index 1c720506e3..ab01ef06e0 100644
--- a/bindings/dotnet/OpenDAL/Options/ReadOptions.cs
+++ b/bindings/dotnet/OpenDAL/Options/ReadOptions.cs
@@ -108,7 +108,7 @@ public sealed class ReadOptions :
IOptions<OpenDALReadOptions>
public long? Chunk { get; init; }
/// <summary>
- /// Controls the optimization strategy for range reads in
<c>Reader::fetch</c>.
+ /// If specified, the value must be positive. It has no effect on
single-range reads through the <see cref="Operator.Read(string, ReadOptions)"/>
and <see cref="Operator.ReadAsync(string, ReadOptions, CancellationToken)"/>
overloads or on sequential reads from <see cref="Operator.OpenReadStream"/>.
/// </summary>
public long? Gap { get; init; }
diff --git a/dev/src/generate/dotnet.rs b/dev/src/generate/dotnet.rs
index 9f8edf9a43..225c6bb003 100644
--- a/dev/src/generate/dotnet.rs
+++ b/dev/src/generate/dotnet.rs
@@ -557,7 +557,15 @@ fn options_class(options: &OptionsStruct, operation: &str)
-> OptionsClass {
pascal: pascal.clone(),
cs_type: cs_type.to_string(),
initializer: initializer.to_string(),
- summary: ctx.summary(&f.doc),
+ summary: if options.name == "ReadOptions" && key == "gap" {
+ "If specified, the value must be positive. It has no effect on
single-range reads \
+ through the <see cref=\"Operator.Read(string,
ReadOptions)\"/> and \
+ <see cref=\"Operator.ReadAsync(string, ReadOptions,
CancellationToken)\"/> overloads \
+ or on sequential reads from <see
cref=\"Operator.OpenReadStream\"/>."
+ .to_string()
+ } else {
+ ctx.summary(&f.doc)
+ },
see_also: capability_refs(&f.doc),
};
let part = |name: &str, rs_type: &str, cs_type: &str| OptionPart {