Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • von 61 posts 123 karma points
    Aug 21, 2018 @ 12:08
    von
    0

    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?

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Aug 21, 2018 @ 12:42
    Dave Woestenborghs
    0

    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

  • von 61 posts 123 karma points
    Aug 22, 2018 @ 08:04
    von
    0

    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.

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Aug 22, 2018 @ 08:26
    Dave Woestenborghs
    1

    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

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Nov 27, 2018 @ 08:49
    Dave Woestenborghs
    0

    Hi Von,

    Just wanted to let you know that 1.7.0 is now released.

    Dave

  • von 61 posts 123 karma points
    Nov 28, 2018 @ 14:10
    von
    0

    Will try it out. Thank you Dave.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies