Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Client/src/Common/Properties.cs
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,14 @@ public string ConnectionString
// ReSharper disable once AutoPropertyCanBeMadeGetOnly.Global
public TaskOptions TaskOptions { get; set; }

/// <summary>
/// Value in bytes above which streaming is used for data upload and download. 0 to always use streaming.
/// </summary>
// TODO: mark as [PublicApi] for setter ?
// ReSharper disable once MemberCanBePrivate.Global
// ReSharper disable once AutoPropertyCanBeMadeGetOnly.Global
public int StreamingThreshold { get; set; } = 0;

/// <summary>
/// The target name of the endpoint when ssl validation is disabled. Automatic if not set.
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion Client/src/Common/Submitter/BaseClientSubmitter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ protected BaseClientSubmitter(Properties properties,
})
.WaitSync();

configuration_ = ChannelPool.WithResultClient(Logger)
configuration_ = properties.StreamingThreshold > 0 ? properties.StreamingThreshold : ChannelPool.WithResultClient(Logger)
.ExecuteAsync(static client => client.GetServiceConfigurationAsync(new Empty()))
.WaitSync()
.DataChunkMaxSize;
Expand Down
Loading