Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GetPage<TPage> and AddPageFactory<TPage, TPageFactory> #727

Merged
merged 5 commits into from
Nov 18, 2023

Conversation

BobLd
Copy link
Collaborator

@BobLd BobLd commented Nov 3, 2023

@BobLd BobLd requested a review from EliotJones November 3, 2023 19:30
$"{typeof(IPdfTokenScanner)}, {typeof(IResourceStore)}, {typeof(ILookupFilterProvider)}, {typeof(IPageContentParser)}, {typeof(ParsingOptions)}.");
}

var instance = constructor.Invoke(new object[]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use of reflection may be problematic if we look to support AOT builds in future but will do for now.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it will definitely be a problem as methods using reflection might be trimmed out.

I have started working on .Net 8 AOT support, here is an example of fix:
BobLd@79f4103#diff-b302975a4cc11925011fc218ef0f880d103758850dd9eddc73b5f61968335b8cR208-R209

I will work on on adding full AOT support soon, happy for someone else to work on it / help though

@BobLd BobLd merged commit 4537ec3 into UglyToad:master Nov 18, 2023
1 check passed
@BobLd BobLd deleted the render-refactor-4-v3 branch November 18, 2023 17:10
@BobLd BobLd restored the render-refactor-4-v3 branch November 18, 2023 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants