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

Type checking the ExternalIndexerGatheringContentData sender #13

Open
charlieanstey opened this issue Feb 22, 2018 · 0 comments
Open

Type checking the ExternalIndexerGatheringContentData sender #13

charlieanstey opened this issue Feb 22, 2018 · 0 comments

Comments

@charlieanstey
Copy link

Hi, first thanks for the great example project, really useful piece of kit.

I'm just extending it to separate each Vorto'd property into separate language fields in my Examine index. So for example, rather than adding just PageContent-en-GB, PageContent-de-DE etc., I might have multiple user fields defined (title, summary etc.). It will instead add title-en-GB, title-de-DE, summary-en-GB, summary-de-DE etc.

In doing this, I've got to check the object sender argument passed in to ExternalIndexerGatheringContentData.

My question: Why is sender of type object and not more specific? Is it possible for it to not be of type UmbracoExamine.UmbracoContentIndexer?

I want to ensure it's the correct type so that I can pull out the UserFields from it type-safely - effectively sender.IndexerData.UserFields. Can you provide any clarification?

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

No branches or pull requests

1 participant