Preload site settings on tenant activation, what you should know about eInvoicing in the EU? - This week in Orchard (22/05/2025)
This time, you can read an interesting article about what you should know about eInvoicing in the EU. But first of all, check out our other topics, like preloading site settings on tenant activation, and removing the default GitHubHandler implementation! Don't forget that you can still apply to be a speaker at this year's Orchard Harvest!
Orchard Core updates
Preload site settings on tenant activation
This change addresses potential issues caused by retrieving site settings in a synchronous-over-asynchronous manner. We can mitigate these problems by preloading the site settings when a tenant is activated. The preloading process is asynchronous, and since the site settings are cached in memory, subsequent access remains non-blocking.
Additionally, when site settings are updated, they are immediately reloaded into the cache to ensure consistency.
To handle the unavoidable synchronous retrieval of site settings in Configure() callbacks, Georg von Kries introduced a synchronous extension method for ISiteService to emphasize it is safe to call them synchronously. The most common call sites have been updated accordingly.
As you can see, two new ISiteService extension methods now synchronously get the site settings or an instance of the specified settings for reading if they exist.
Remove the default GitHubHandler implementation
We have migrated to using the AspNet.Security.OAuth.GitHub package to simplify and reduce the amount of custom code required for GitHub integration. As part of this change, the following classes have been removed:
- GithubDefault - replaced by the library’s GitHubAuthenticationDefaults.
- GithubOptions - replaced by the library’s GitHubAuthenticationOptions.
- GithubHandler - replaced by the library’s GitHubAuthenticationHandler.
In addition, the IGithubAuthenticationService interface has been removed. If you need to access the GitHub authentication settings, you can now do so by:
- Resolving IOptions<GitHubAuthenticationOptions>, or
- Using ISiteService to retrieve the site's configuration.
News from the community
EN 16931 in ASP.NET Core: What you should know about eInvoicing in the EU
Are you building a business app with Orchard Core or ASP.NET Core that sends invoices in the EU? Then you’ll likely run into EN 16931 eInvoicing sooner or later. Check out our latest post to know what EN 16931 or CIUS is and how to do validation and PDF/A-3 support using ASP.NET Core or Orchard Core. Stay tuned for a validation library coming soon!
Be a speaker at Orchard Harvest 2025
After last year, the Orchard Harvest Conference will be held again in 2025. Last year, it was held in Las Vegas, and we had a really great time there. We would like to try to organize it again in Europe this year. The first step was to assess the potential interest and what would be needed. We created a survey, and we had the results!
The Orchard Harvest 2025 conference will be held in Prague, and we look forward to seeing you all this autumn in the Czech Republic, in the heart of Europe. Our confirmed dates for this year are the 11th and the 12th of November. To make our conference happen, we need our unreplicable speakers. Do you have an interesting Orchard Core-related topic you'd like to present to the community? Development techniques, memorable case studies, and valuable experiences that you'd like to share? Click on this link now to apply as a speaker! Selected speakers will receive complimentary tickets!
As we move forward, we will keep community members informed of the details, and you will also find every detail in this newsletter! We also updated the official website with the latest information about Harvest.
Orchard Dojo Newsletter
Lombiq's Orchard Dojo Newsletter has 452 subscribers! We have started this newsletter to inform the community around Orchard of the latest news about the platform. By subscribing to this newsletter, you will get an e-mail whenever a new post is published to Orchard Dojo, including This week in Orchard of course.
Do you know of other Orchard enthusiasts who would like to read our weekly articles? Tell them to subscribe here!