Copied to clipboard

Flag this post as spam?

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


  • Allan Svelmøe Hansen 21 posts 112 karma points
    Dec 04, 2017 @ 13:46
    Allan Svelmøe Hansen
    0

    Custom ISimpleDataService and Thread Culture

    Hi.

    We have a custom implementation of ISimpleDataService to build an Examine index.

    But from where does the implementation get it's thread culture info from?

    In the OnApplicationStarted, in Global.asax we set the DefaultThreadCurrentCulture and DefaultThreadCurrentUICulture to "da-DK".

    However when debugging, I see that the culture info in our implementation of GetAllData on our version of the Indexer gets its value set to en-GB (and where I'd incidental would have expected en-US)

    This culture of en-GB; is that set via the Umbraco code or can I configure the thread that's running the index building without explicit setting culture again in our GetAllData?

    Thanks in advance

  • Alex Skrypnyk 5908 posts 22603 karma points MVP 4x admin c-trib
    Dec 04, 2017 @ 13:59
    Alex Skrypnyk
    100

    Hi Allan

    Are you calling index rebuilding by Umbraco backend?

    What is the culture of Umbraco backend user?

    Thanks,

    Alex

  • Allan Svelmøe Hansen 21 posts 112 karma points
    Dec 05, 2017 @ 07:31
    Allan Svelmøe Hansen
    0

    That was indeed the missing factor. That culture was set to UK. Thanks a lot

  • 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