Skip to content
New issue

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

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

Already on GitHub? # to your account

Allowing to create PnPContext from ClientContext with existing IPnPContextFactory #762

Merged
merged 1 commit into from
Oct 17, 2022

Conversation

heinrich-ulbricht
Copy link
Contributor

I have a scenario where I already have 1) a ClientContext and 2) an existing IPnPContextFactory with configured PnPCore settings, and I need a PnPContext created from that.

Currently there is a GetPnPContext(Async) method that allows to create a PnPContext from an existing ClientContext. But this uses an internal IPnPContextFactory that is not configured to use the settings I need. Thus I'd like to pass my own factory.

This pull request makes it possible to pass an already configured factory to be used for PnPContext creation.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants