Legal Notice
The opinions expressed herein are my own personal opinions and do not represent my employer’s view in anyway.Top Posts
- C# DateTime to UNIX timestamps
- C# Use HttpClient to GET JSON from API endpoint
- C# Azure Table Storage QueryAsync, Paging and Filtering
- C# get results from Task.WhenAll
- C# HttpClient POST or PUT Json with content type application/json
- C# JWT Token Get Expiry Timestamp
- C# Ignoring Namespaces in XML when Deserializing
Archive
Meta
Tag Archives: Dependency Injection
C# Inject ILogger into Dapper Polly Retry Policy
There are many articles describing how to make a retry policy when using Dapper. I especially like this extension method implementation. But you cannot inject any class into extension methods because extension methods reside in a static class. Therefore you … Continue reading
Posted in .net, .NET Core, c#, General .NET
Tagged Dapper, Dependency Injection, DI, ILogger, Polly, Retry, SQL
Leave a comment
Sitecore Pipelines – The great walkthrough
I have previously stated my enthusiasm for the Sitecore Pipeline concept. This article describes how to create your own, how to add parameters, and which properties to use. WHAT IS A SITECORE PIPELINE? It is best described as a simple … Continue reading
Posted in .net, c#, General .NET, Sitecore 5, Sitecore 6, Sitecore 7, Sitecore 8, Sitecore 9
Tagged Dependency Injection, Pipeline, PipelineArgs, Processor, Resolve, Reusable, runIfAborted, Sitecore and .net
Leave a comment
Sitecore 9 Dependency Injection – Extend the Sitecore Logging
With the extended use of Dependency Injection (DI) in Sitecore 9, you have yet another tool to extend the Sitecore functionality. With DI you can basically replace or extend standard Sitecore functionality with your own code. Dependency Injection is not a … Continue reading
Posted in .net, c#, General .NET, Sitecore 9
Tagged Dependency Injection, DI, Logging, Sitecore and .net
1 Comment
Sitecore 9 Configuration not available on Dependency Injection – LockRecursionException: Recursive upgradeable lock acquisitions not allowed in this mode
Form Sitecore 8.2, Sitecore have implemented Dependency Injection for their own classes. Sitecore uses Microsoft’s Dependency Injection library. Sitecore uses dependency injection to inject many things, including configurations. Therefore, you cannot access configuration before after your code have been injected. … Continue reading
Posted in .net, c#, General .NET, Sitecore 8, Sitecore 9
Tagged Dependency Injection, IOC, ServicesConfigurator, Sitecore and .net
1 Comment