Asp.Net

Object Cache Viewer Joins EPiServer Developer Tools

It's super cool to work together with the community and unite effort across all areas to strengthen EPiServer ecosystem and toolsets. After chat with Joe Mayberry we decided that his local object cache viewer would be great addition to EPiServer DeveloperTools. Thanks to Joe's contributions local object cache viewer is now part of EPiServer DeveloperTools package. During the merge we added small extra to the tool - you can now also see approx. size of the cache entry (might be sometimes useful to know who ate the cake). Code to…

Keep reading

How Risky are EPiServer.DeveloperTools on Production Environment?

We had a great conversation at the EPiServer Partner Close-Up conference with one and only Allan Thræn about future plans and such. And one of the topics we chatted about was that in our opinion no one really knows whether "EPiServer.DeveloperTools" package is safe to install to production environment or not. Will it do any harm? It's great for local development and probably staging also. But what about production? What exactly the package does, what it intercepts, mimics or changes in the running code?! Therefore I thought…

Keep reading

Localized Episerver Enum Properties

Time to time I receive questions on how to properly translate System.Enum based properties on Episerver using DbLocalizationProvider package. The support has been around for quite while, but I've never really blogged about it properly.…

Keep reading

Razor UI Class Library with Dynamic Area Name

This blog post is describing configuration setup required to support dynamically generated area names for Razor Class Library Pages. This approach is used in AdminUI for DbLocalizationProvider for Asp.Net Core.…

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