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.
Using GetNexuRelationsForContent
We would like to leverage GetNexuRelationsForContent but it's inside the NexuService, which is an internal class. Any chance that can be public?
Hi Von,
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 : https://github.com/dawoe/umbraco-nexu/blob/develop/Source/Our.Umbraco.Nexu.Core/NexuService.cs#L243
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.
Dave
Hi Dave,
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.
Hi Von,
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.Dave
Hi Von,
Just wanted to let you know that 1.7.0 is now released.
Dave
Will try it out. Thank you Dave.
is working on a reply...