Skip to main content

Posts Tagged ‘.net’

Istock 1445557229

DI-Y: Crafting Code with Multiple Services Using IEnumerable in Dependency Injection

Registering Services for IEnumerable Injection Service Registration Fundamentals Service registration is the process of telling the DI container how to create instances of a service, typically done at application startup. Registering Services for IEnumerable When services implement a common interface, you can register them in such a way that the DI container can provide an […]

Rendering Host with Xm Cloud

Not just Next.js! Making XM Cloud work with .NET Core Headless Renderings

Next.js is a wonderful framework and paired with its vendor platform (Vercel) it indeed provides exceptional capabilities for building natively headless applications. That unfortunately shadows out another great SDK for headless implementations – .NET Core Renderings, which in my opinion is undervalued. So, I decided to give it some more care by making it work […]

Microsoftteams Image

Why Is It Important to Upgrade to Optimizely CMS 12, Commerce 14, and .NET 6?

A new year means new projects and marketing strategies, but how do you want to improve your key systems in 2023? We’ve put together this overview to help every Optimizely CMS/DXP user think about the precious aspects.   Released in November 2021, .NET 6 marks the latest update in the .NET Core product line. .NET 5 […]

Abstract colorful grid surrounded by glowing particles

Config-Per-Site in Optimizely Multi-Tenant Environments

Recently, I was given a task at work where we needed a multisite configuration. We all know that multi-environment is as easy as appsettings.<environment_name>.config. What about in multi-tenant environments? You can’t have appsettings.site1.config and appsettings.site2.config on your site! Well, not without a little extra work… Let me introduce AddKeyPerFile; this handy little function you set […]

Puzzle

The 1001st Piece in your 1000 Piece Puzzle: .NET Default Interface Functions

I recently worked with a client who wanted a reasonably large subsystem added to Optimizely that would add automated management to their content. While cutting the code for this, I found myself writing similar code across multiple classes. I had to write it that way: 1) The client was currently on CMS11 and didn’t have […]

Dependency injection in C# .NET

I’ve decided to write a tutorial on how to accomplish dependency injection in C# .NET, because the Microsoft documentation of dependency injection libraries is unfortunately way too sparse, and the Microsoft dependency injection tutorial is a little convoluted and complicated. Fortunately, C# .NET’s implementation of dependency injection is pretty straightforward. In my opinion, it’s way […]

Robotic Process Automation

How .NET Newest Version is and will Continue Helping New Generations to Start Programming Easily

Microsoft had its .NET Conf event from November 9 to 11, 2021, announcing .NET 6 and C# 10. Within all the new features and tools added for this release, you can find that .NET is clearly aiming to facilitate the way we collaborate when coding or hosting the applications of our organization. It seems that technology […]

APS.NET Core Web Application with React-Redux

Introduction React has gone viral among web developers. Compared to other mainstream JS libraries, thanks to JSX and virtual DOM, react has native advantages on DOM control. Redux is a handy way to manage state and React-Redux provides the glue between React and Redux. Going back to ASP.Net core, on VS 2017 Update 3, users […]

Microsoft AI at a Glance

Artificial intelligence (AI), the ability of a digital computer or computer-controlled robot to perform tasks commonly associated with intelligent beings including learning, language and perception, then help people solve problem better. It has been over several decades since human being research on AI, but the progress is very slow because of many facts, such as lack of data information, low performance […]

NuGet.org Launches New Site Redesign

NuGet.org, the go-to, repository for .NET developers to find and download packages, has just announced the launch of the site redesign they have been working on. There’s a link from the original site to use the preview site, or you can go directly to it by navigating to preview.nuget.org. According to the release announcement, the […]

Deep Space@1x.com

Site Clusters in Sitecore – Part 1

We often create multilingual websites using Sitecore’s powerful CMS. Sitecore has a great solution for multilingual content. Each item in the content tree can include a number of item versions, and each item version can be delivered in a different language, so translation of content is simple and straightforward. Well, not exactly. These item versions […]

4 Easy Steps to Custom Sections in web.config

In a recent project, I used the web.config file to store some configuration settings that could easily be modified without redeploying code. I used the standard appSettings in <configurations><appSettings><add key=”” value=”” /> .  This works great when you have a specific key name and value. For one specific setting, I needed a little more flexibility.  I created a custom […]

Load More