C#

Module Dependencies in EPiServer DeveloperTools

After gratefully accepted invitation to contribute to the Episerver Developer Tools package, I can safely do this: All credits to the amazing Episerver team, I'm just contributing here :) So that's why happy to share some of the updates in latest version. While reviewing performance for startup modules (either configurable or initializable ones) to find out some bottlenecks on the site.. I had hard time to find the answer on question - what is the order/dependencies of modules in this list and how they are interconnected? As I do like…

Keep reading

Localizing Asp.Net Core Applications now with AdminUI

Finally it's time to release administrative user interface for complementing Asp.Net Core application localizing process. It's been a while since localization provider has been released for Asp.Net Core applications, but until now - actual translation of the resources was limited due to absence of the user interface through which editor can make adjustments to the translations. I'm happy to announce that AdminUI has been rewritten to utilize Vue.js framework and to grind some of the rough edges of the library. Installation The only thing you need to…

Keep reading

Baking Round Shaped Apps with MediatR

This post shows all the necessary changes I had to make to convert original pizza solution to use MediatR library (+ also converted to NetCoreApp 2.0).…

Keep reading

Some smaller updates for DbLocalizationProvider

Localization provider is well and alive. Lately I've been heads down busy with porting some of the parts over to .Net Core targeting .Net Standard version 2.0. Anyway just wanted to let you know some of the smaller updates and fixes for the latest version of the provider packages. Multi-Target -> NetFx and Core Now there are specific multi targets for .Net Framework and .Net Core for and packages. This was required due to reported issues when package was used context together with WebApi (to be more specific…

Keep reading

Alternative Localization for Asp.Net Core Applications

Asp.Net Core Built-In Support This is code fragment from official documentation how to localize content using built-in functionality. App Content Localization [Route("api/[controller]")] public class AboutController : Controller { private readonly IStringLocalizer<AboutController> _localizer; public AboutController(IStringLocalizer<AboutController> localizer) { _localizer = localizer; } [HttpGet] public string Get() { return _localizer["About Title"]; } } And if you are working with Html content that shouldn't be escaped during rendering - you are using IHtmlLocalizer implementation that returns LocalizedHtmlString instance. public class BookController : Controller { private readonly IHtmlLocalizer<BookController&…

Keep reading