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 25 posts 136 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 6163 posts 24143 karma points MVP 8x 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 25 posts 136 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

Please Sign in or register to post replies

Write your reply to:

Draft