Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
We would like to leverage GetNexuRelationsForContent but it's inside the NexuService, which is an internal class. Any chance that can be public?
Maybe you can use the API controller to do that. That method is public : https://github.com/dawoe/umbraco-nexu/blob/develop/Source/Our.Umbraco.Nexu.Core/WebApi/NexuApiController.cs#L92
Otherwise you can use the logic from that method. It uses the built-in relations service :
But maybe you can also raise a issue here : https://github.com/dawoe/umbraco-nexu/issues
Just point out the methods from the service you want to be public.
Thanks for your reply. I want to call the service from an API and I prefer not to do another API call (to the NexuApiController) if there's a way to call the NexuService directly. The second link you pointed to is what I am trying to call but it's in an internal class.
Thanks for raising the issue : https://github.com/dawoe/umbraco-nexu/issues/37
I have made the service public in the latest 1.7.0 beta
You can find links to the nuget and umbraco prereleas packages on the repo home page : https://github.com/dawoe/umbraco-nexu/
You can use Our.Umbraco.Nexu.Core.NexuService.Current to get a instance of the service.
Just wanted to let you know that 1.7.0 is now released.
Will try it out. Thank you Dave.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted