Skip to content

Commit f9c0805

Browse files
committed
Remove default constructor on BuildJobResult and BuildEncodeResult; these are not user-created types.
1 parent d915523 commit f9c0805

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGES.md

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ It is now possible to provide ReadOnlyMemory<byte> data and IOwnedMemory<byte> d
1616
## v0.12 (2024-02-06)
1717

1818
* Fix compatibility with RecyclableMemoryStream 3.x, drop compatibility with 1.x
19+
* Remove default constructor on BuildJobResult and BuildEncodeResult; these are not user-created types.
1920

2021
## v0.11 (2024-01-29)
2122

src/Imageflow/Fluent/BuildEncodeResult.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public record class BuildEncodeResult
1414
// Destination = destination;
1515
// }
1616

17-
public BuildEncodeResult()
17+
internal BuildEncodeResult()
1818
{
1919
}
2020
// maps to "preferred_mime_type" in json

src/Imageflow/Fluent/BuildJobResult.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public class BuildJobResult
99
{
1010

1111
[Obsolete("Use ImageJob.FinishAsync() to get a result; you should never create a BuildJobResult directly.")]
12-
public BuildJobResult(){
12+
internal BuildJobResult(){
1313
_encodeResults = new Dictionary<int, BuildEncodeResult>();
1414
DecodeResults = new List<BuildDecodeResult>();
1515
EncodeResults = new List<BuildEncodeResult>();

0 commit comments

Comments
 (0)