Skip to content

Commit

Permalink
Expose TransportResponse to derived classes
Browse files Browse the repository at this point in the history
  • Loading branch information
stevejgordon committed Nov 21, 2024
1 parent 3fa8078 commit 4907cfd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Elastic.Transport/Responses/TransportResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public override string ToString() => ApiCallDetails?.DebugInformation
/// StreamResponse and kept internal. If we later make this public, we might need to refine this.
/// </remarks>
[JsonIgnore]
internal IEnumerable<IDisposable>? LinkedDisposables { get; set; }
protected internal IEnumerable<IDisposable>? LinkedDisposables { get; internal set; }

/// <summary>
/// Allows the response to identify that the response stream should NOT be automatically disposed.
Expand All @@ -55,6 +55,6 @@ public override string ToString() => ApiCallDetails?.DebugInformation
/// Currently only used by StreamResponse and therefore internal.
/// </remarks>
[JsonIgnore]
internal virtual bool LeaveOpen { get; } = false;
protected internal virtual bool LeaveOpen { get; } = false;
}

0 comments on commit 4907cfd

Please sign in to comment.