Skip to content

Commit 6c99b65

Browse files
authored
Update pageable helpers to assist in new model serialization generation (Azure#38399)
* update pageable helpers to assist in new model serialization generation * make functions back compat * keep pageable the same but make the wrapper classes internal
1 parent 5fdf250 commit 6c99b65

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sdk/core/Azure.Core/src/Shared/PageableHelpers.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ public override IEnumerable<Page<T>> AsPages(string? continuationToken = default
163163
}
164164
}
165165

166-
private class AsyncPageableWrapper<T> : AsyncPageable<T> where T : notnull
166+
internal class AsyncPageableWrapper<T> : AsyncPageable<T> where T : notnull
167167
{
168168
private readonly PageableImplementation<T> _implementation;
169169

@@ -176,7 +176,7 @@ public AsyncPageableWrapper(PageableImplementation<T> implementation)
176176
public override IAsyncEnumerable<Page<T>> AsPages(string? continuationToken = null, int? pageSizeHint = null) => _implementation.AsPagesAsync(continuationToken, pageSizeHint, default);
177177
}
178178

179-
private class PageableWrapper<T> : Pageable<T> where T : notnull
179+
internal class PageableWrapper<T> : Pageable<T> where T : notnull
180180
{
181181
private readonly PageableImplementation<T> _implementation;
182182

@@ -189,7 +189,7 @@ public PageableWrapper(PageableImplementation<T> implementation)
189189
public override IEnumerable<Page<T>> AsPages(string? continuationToken = null, int? pageSizeHint = null) => _implementation.AsPages(continuationToken, pageSizeHint);
190190
}
191191

192-
private class PageableImplementation<T>
192+
internal class PageableImplementation<T>
193193
{
194194
private readonly Response? _initialResponse;
195195
private readonly Func<int?, HttpMessage>? _createFirstPageRequest;

0 commit comments

Comments
 (0)