Resources No resource found - A Comprehensive Guide to Best Practices and Common Scenarios Using Dependency Injection in .NET 8 with C#10Feb 20, 2024. This comprehensive resource covers everything you need to know to leverage Dependency Injection effectively in .NET 8 with C# 10. Ziggy Rafiq explains how to use Dependency Injection in the best possible way. For developers looking to optimize their .NET projects, this guide provides invaluable insight from understanding core concepts to implementing advanced techniques.
- Securing PDF Uploads in MVC: Mitigating PDF Injection and Cross-site Scripting VulnerabilitiesJan 15, 2024. PDF Injection, also known as PDF XSS (Cross-site Scripting), can be a serious security vulnerability. To prevent such issues during PDF upload and viewing in an MVC (Model-View-Controller) application, it's crucial to implement proper validation and sanitation mechanisms. Below is a sample code that demonstrates how to handle PDF uploads securely and prevent PDF Injection leading to Cross-site Scripting in an MVC environment.
- Dependency Inversion Principle VS Dependency Injection in C#Jan 04, 2024. Dependency Inversion Principle (DIP) and Dependency Injection (DI) are pivotal in crafting resilient software. Learn their implementations in C# for modular, adaptable, and maintainable code structures.
- Understanding Dependency Injection in C#Dec 18, 2023. This article explores Dependency Injection (DI) in C#, explaining its types (constructor, property, and method injection) and demonstrating its implementation using a UserService and a SqlUserRepository for improved maintainability and testability.
- Dependency Injection Essentials in AngularDec 07, 2023. Angular, Google's robust front-end framework, employs Dependency Injection (DI) to elegantly manage components and services. DI, a design pattern fostering loose coupling, allows components to receive dependencies externally. This article navigates the intricacies of DI in Angular, unraveling its principles, extolling advantages, and providing practical implementations through illustrative code examples.
- Keyed Dependency Injection in .NET 8Nov 16, 2023. Keyed dependency injection, introduced in .NET 8, is a powerful feature allowing service resolution based on specific keys. This enables managing multiple implementations of the same interface efficiently. Learn about its implementation, usage restrictions, and how it enhances flexibility in application design, ensuring a valuable addition to .NET developers' toolkits.
- Using Dependency Injection in .NET Console AppsOct 29, 2023. This article introduces developers to using Dependency Injection in console applications, expanding their utility beyond simple command-line tools. It explains how to set up a console app with a ServiceCollection, just like in ASP.NET Core. Key steps and code are provided, including installing NuGet packages, creating a Program.cs structure, integrating Entity Framework (EF) Core for database operations, and utilizing ILogger for improved logging. The article illustrates how to enhance console apps with advanced features and services.
- How to Explain Dependency Injection to a 6-Year-Old KidOct 17, 2023. In explaining Dependency Injection (DI) to a child, consider action figures equipped with interchangeable tools. Imagine adding new weapons without altering the figures, much like incorporating advanced functionalities into software seamlessly. Explore the essence of DI's adaptability through a practical coding analogy, fostering flexibility and future readiness.
- Simplify Dependency Injection In .NET 6 For Windows Forms DevelopmentOct 06, 2023. This article explains how to use dependency injection in .NET 6 Windows Form Application.
- API Call Using Dagger2 Dependency Injection With RxJava In AndroidOct 03, 2023. In this article, you will learn about how to make API Call using Dagger2 dependency injection with RxJava in android.
- Dependency Injection And Service Lifetime in ASP.NET CoreSep 18, 2023. Dependency injection And Service Lifetime in ASP.NET Core With Realtime example
- What is Dependency Injection in Angular?Sep 13, 2023. Dependency Injection (DI) is a fundamental design pattern in Angular used to manage dependencies and data flow within an application. It promotes loose coupling between components, enhancing modularity, maintainability, and testability.
- Achieving Dependency Injection in .NET Core WebAPISep 13, 2023. This article outlines the process of implementing Dependency Injection (DI) in a .NET Core Web API application. DI is crucial for managing dependencies, enhancing modularity, and enabling testability. It begins by explaining the importance of DI in a Web API and then provides a step-by-step guide on how to achieve it.
- Dependency Injection in C# .NET With ExamplesSep 12, 2023. Discover Dependency Injection in C# .NET: Learn how to achieve flexible, maintainable, and loosely coupled code by decoupling components in your software. Explore constructor, property, and method injection with practical examples.
- Mastering Dependency Injection and Third-Party IoC IntegrationAug 29, 2023. Dependency Injection (DI) is a design pattern used in software development to achieve loosely coupled components by allowing the injection of dependencies into a class rather than creating them within the class. This promotes better code reusability, testability, and maintainability. In the context of Dependency Injection, an Inversion of Control (IoC) container is a tool that manages the injection of dependencies.
- Dependency Injection in ASP.NET CoreAug 21, 2023. Discover the power of Dependency Injection (DI) in ASP.NET Core with this comprehensive guide. Dive into the world of IoC (Inversion of Control) principles and learn how DI promotes modular, maintainable, and testable code. Explore the reasons behind using DI in ASP.NET Core applications and unlock its benefits, including enhanced reusability, flexibility, and easier testing. Follow step-by-step instructions to implement DI, from service registration to constructor injection. Understand different dependency lifetimes and explore advanced features like named services and conditional registration. Embrace Dependency Injection to elevate your ASP.NET Core development skills and build robust, scalable applications with ease.
- ASP.NET Core Dependency Injection Using C# with Framework 7Jul 19, 2023. ASP.NET Core Dependency Injection (DI) is a powerful feature that allows you to manage and resolve dependencies in your applications. It provides a way to achieve loose coupling, modularity, and testability. When combined with Framework 7, a popular framework for building mobile applications, ASP.NET Core DI becomes even more valuable.
- Understanding Angular Injection TokensJun 20, 2023. Angular's dependency injection (DI) system manages dependencies in a modular, scalable manner. Injection Tokens are unique identifiers used by the system to resolve dependencies flexibly. They enable custom configurations, integration of external libraries, and handling of multiple implementations of interfaces or abstract classes.
- Why is Angular's Dependency Injection so Powerful?May 04, 2023. The article is about Angular's Dependency Injection system, which is a design pattern used in software development that helps create loosely coupled code. Dependency Injection separates the creation of an object from its usage, making the code more modular and easier to maintain. Angular's Dependency Injection system is a powerful and flexible system that allows developers to define dependencies at various levels, from the application level to the component level.
- Dependency Injection In .NET Core - Understanding The Fundamentals And Best PracticesApr 12, 2023. In this article, you will learn about dependency Injection in .NET Core: Understanding the Fundamentals and Best Practices.
- Simplifying Flutter App Development with GetX's Dependency Injection SystemFeb 24, 2023. Managing dependencies is essential to building maintainable and scalable code in Flutter applications. A dependency injection (DI) solution like GetX can make this process much more efficient and effective than Flutter's essential dependency management tools.
- Getting Started with Dependency Injection in ASP.NET Core using C#Feb 17, 2023. In this article, we explored how to use dependency injection (DI) in ASP.NET Core using C#. We covered the basics of DI, including what it is and why it's important. We then looked at how to set up DI in an ASP.NET Core application, including registering services and injecting dependencies into controllers, services, and middleware.
- Dependency Injection In .Net Core With ExampleFeb 13, 2023. In this article, you will learn about Dependency Injection in .Net Core with Examples.
- Dependency Injection Features In .NET 6Dec 21, 2022. In this article, you will learn about Dependency injection features in .NET 6.
- Dependency Injection Pattern In C# - Short TutorialJul 31, 2022. In this article, we explain DI Pattern, DIP, IoC, and DI Container.
- Dependency Injection In ReactJSMay 10, 2022. In this article, you will learn about dependency Injection in ReactJS using logger example
- Implement And Register Dependency Injection In ASP.NET Core/.NET 6Apr 11, 2022. implement and register dependency injection in .NET 6
- Implementing Dependency Injection In Azure FunctionsMar 01, 2022. This article talks about how we can use dependency injection in Azure Functions. Dependency injection is a very well known design patterns which is used to implement IoC as provides you a facility to segregate object creation logic from it’s usage.
- How To Use Dependency Injection In .NET CoreJan 27, 2022. This article will describe the concept and practical implementation in .Net Core. I tried to cover all things w.r.t.Net Core Development
- ThunderboltIoc - .Net Dependency Injection Without Reflection!Jan 10, 2022. Introduction and documentation for the new ThunderboltIoc framework which achieves dependency injection in .Net without reflection.
- Building ASP.NET Core Web Application With Dependency Injection Passing Objects Between LayersDec 07, 2021. In this article, you will learn how to build ASP.NET core web application with dependency injection passing objects between layers.
- Implementing Unit Of Work And Repository Pattern With Dependency Injection In .Net 5Sep 03, 2021. This article will deep dive into the different kinds of pattern implementation and its usage.Net 5 Web API.
- How To Add Dependency Injection In Your Sitecore ApplicationJan 07, 2021. In this article, you will learn how to add dependency injection in your sitecore.
- How To integrate Dependency Injection In Azure FunctionsJan 05, 2021. In this article, you will learn how to integrate Dependency Injection in C# based Azure functions.
- Command Injection Exercise - Starting Netcat Sep 30, 2020. In this article, you will learn about the Command Injection exercise – Starting Netcat.
- Types Of SQL Injection Sep 22, 2020. In this article, you will learn about the types of SQL Injection.
- .NET Core Singleton Dependency Injection With Real Use CaseSep 18, 2020. In this article, you will learn about .NET Core Singleton Dependency Injection with a real use case.
- CSS Injection - ExploitationSep 11, 2020. In this article, you will learn about CSS Injection-Exploitation.
- SQL Injection Protection MethodsAug 18, 2020. In this article, you will learn about SQL Injection Protection Methods.
- Service Lifetime Dependency Injection - ASP.NET CoreJul 21, 2020. Basic understanding of a feature called in build Dependency Injection provided by ASP.NET Core.
- Dependency Injection Lifetimes In ASP.NET COREApr 01, 2020. Understanding the Dependency Injection & its lifetimes(Singleton, Transient, Scoped). Example can help to understand the different lifetimes and choose appropriate lifetime for service.
- Dependency Injection Normal Way vs MEF vs Unity Mar 13, 2020. In this article, we will try to understand how we can achieve dependency injection without any framework and using MEF and Unity Framework.
- Understand Dependency Injection in BlazorFeb 23, 2020. In this article, you will learn about dependency Injection in Blazor.
- Implementing Dependency Injection In .NET Core Console ApplicationsFeb 07, 2020. In this article, you will learn how to implement Dependency Injection in .NET Core Console Applications.
- Dependency Injection (Property Injection) In C#Nov 21, 2019. In this article we are going to discuss Property Injection. Dependency injection (DI) is a design pattern used in C# and other object-oriented programming languages to achieve better code organization, maintainability, and testability. It's a technique that helps manage dependencies between different parts of an application.
- Dependency Injection (Constructor Injection) In C#Oct 29, 2019. In this article, you will learn about dependency injection (constructor injection) in c#.
- SQL Injection Step By Step - Part OneSep 30, 2019. This article explains how SQL injection can be used to bypass the login page of a PHP application.
- Basics Of Dependency Injection In ASP.NET CoreJul 19, 2019. ASP.NET Core heavily depends on Dependency Injection. We'll not be able to write better applications without understanding the basics of this framework & adopting it. In this article, we will learn the same.
- Dependency Injection For Quartz.NET In .NET CoreApr 29, 2019. The article shows how to perform dependency injection when using Quartz.NET library employing standard .NET Core DI container library. Also, we'll focus on a couple of other useful .NET core techniques.
- Connect MS SQL, MongoDB And MySQL Databases From Same MVC App Using Dependency Injection Mar 25, 2019. In this post, we will see how to connect MS SQL, MongoDB, and MySQL databases from the same MVC application. We will use dependency injection with Unity package to achieve this.
- All About OWASP #1 - SQL Injection AttackFeb 13, 2019. Considering security as the most important aspect of an application and as the First step in SOUND Programming Methodology, we will be covering SQL Injection Attack and Prevention.
- Dependency Injection In .NET CoreFeb 06, 2019. In this article, we will see how dependency injection works in .net core using Microsoft.Extension.DependencyInjection.
- .NET Core Dependency Injection - One Interface, Multiple ImplementationsFeb 05, 2019. In this article, we will see how we can inject the dependency when we have more than one implementation for an interface.
- Dependency Injection With Serverless FunctionsDec 16, 2018. Port your interfaces and classes from your Web API to a serverless function using dependency injection. This article demonstrates how to bootstrap AWS Lambda and Azure Serverless Functions with dependency injection.
- Overview Of Dependency Injection In AngularNov 17, 2018. Dependency injection is the way of programming in which we try to inject the set of operations called services to the modules. Without dependency injection, if we are creating the application in large scale then we have to repeat the creation certain set of operations everywhere in the application. With the help of Dependency injection we simply create the services that contains the set operations related to creating the data and other manipulations and inject it to everywhere it is using. It allow us to create the loosely coupled application where components are independent of changes done by services externally.
- Understanding Dependency Injection Using Constructor, Property, And Method In C#Nov 04, 2018. Today, I am going to explain in details about dependency injection in C#. This article is for those developers who don't know anything about Dependency Injection (DI). Just go through below all the example along with code comments to get a better understanding of DI.
- Dependency Injection - Service LifetimesJun 21, 2018. The article gives a short and simple example of Service lifetimes, when using DI pattern in the application.
- Dependency Injection Using Unity - Resolve Dependency Of DependenciesMar 13, 2018. In this article, you will learn to showcase the existing problems with tightly coupled applications, how to make the application loosely coupled and achieve inversion of control via dependency injection, solve the problem of resolving dependency of a dependency in a three-layered/n layered project architecture using unity framework.
- Dependency Injection In ASP.NET Core 2.0Mar 06, 2018. In this article, we will see in detail how to use Dependency Injection in ASP.NET Core 2.0.
- Owned<T> - Controlled Lifetime In Dependency Injection With AutofacFeb 16, 2018. Generally speaking, an owned dependency corresponds to some unit of work performed by the dependent component.
- Custom Service Dependency Injection In .Net Core 1.1Jan 04, 2018. In this article we will go through one of the key features of .Net Core, Custom Service dependency injection in .Net core 1.1, particularly at controller’s action level .
- How To Control SQL Injection In PHPDec 07, 2017. This is an interview question, when a person showcases himself as the FULL Stack developer, it is very important that the developer should have base knowledge on the security aspects of the applications.
- Dependency Injection In AngularNov 14, 2017. Let us assume, if we want to build a Home. To build a Home we need several objects like bricks, wood, concrete, iron etc. To keep this example simple let's say we just need a bricks object to build a Home.
- ASP.NET Core 2.0 MVC Dependency Injection In ViewsNov 01, 2017. In ASP.NET Core dependency injection is not limited to middleware, controllers and models etc. Views can also benefit from the services configured in the service container.
- Dependency Injection Into Views In ASP.NET Core MVCNov 01, 2017. The dependency injection in ASP.net core is not limited to middleware, controller, and models. It also supports dependency injection into view.
- Applying Dependency Injection In DevExpress MVVM WPF Application IntroductionOct 31, 2017. In this post, I’ll give a tutorial on how to apply dependency injection in DevExpress WPF application. This post assumes you already know about dependency injection, WPF application, and also MVVM. DevExpress MVVM is one of freely available MVVM frameworks we can use to develop desktop application using WPF.
- Dependency Injection In ASP.NET MVC 5Oct 10, 2017. In this article, understand Dependency Injection in MVC and how to implement Dependency Injection in ASP.NET MVC using C#.
- How To Implement Dependency Injection In MVC ProjectOct 07, 2017. Here I am going to explain how to implement dependency injection in MVC Project in detail including separate layers for getting data through Services and Repositories.
- Dependency Injection - Part 7 - Service Locator PatternSep 18, 2017. Service locator pattern is one of the most commonly used patterns. In general, this pattern is used along with other patterns like Adapter Pattern, Observer Pattern, Dependency Injection Principles and many more. In this post, however, we will be talking about its use with dependency injection, which is one its many uses.
- Dependency Injection - Part Six - Autofac's "AsImplementedInterfaces"Sep 11, 2017. While I was exploring Autofac, I found AsImplementedInterfaces quite interesting. Not only because it is useful, but also because if we are not careful with its use, we may end up with unexpected application behavior.
- Dependency Injection - Part Five - Using A DI Container (Autofac)Aug 29, 2017. A DI container takes the responsibility of instantiating and providing the dependency instances, irrespective of the level of dependencies. As a result, it is a container that manages the scope of the instantiated objects.
- Dependency Injection - Part Four -Embracing AbstractionAug 18, 2017. Dependency Injection (DI) is a technique that helps us achieve loose coupling between objects and their collaborators. In this post, we will use constructor based dependency injection, however, we are not going to use any DI container for now.
- Dependency Injection - Part 3 - Implicit Vs Explicit DependenciesAug 12, 2017. If a component or class depends upon other components to complete its operations, then these other components are dependencies for this class. Our class can have these dependencies as implicit or explicit dependencies.
- Dependency Injection - Part Two - Five Reasons To Write Loosely Coupled CodeAug 09, 2017. A loosely coupled application has good isolation among its classes, modules and assemblies. Therefore, if we make a change to one part of the application, we only need to update the relevant modules. We do not need to make changes throughout the application.
- Dependency Injection - Part One -Tightly Coupled ApplicationAug 07, 2017. It is a best practice to use interfaces instead of concrete classes. These interfaces can then be mocked at the time of unit testing, which will prevent any call to the actual database. Also, it is a good practice to stop "newing-up" objects in classes.
- Introduction To Dependency Injection And Services In Angular 2Feb 21, 2017. In this article, you will learn about Dependency Injection and Services in Angular 2.
- Overview Of Dependency Injection In ASP.NET CoreFeb 13, 2017. In this article, you will learn about Dependency Injection in ASP.NET Core.
- Sharepoint 2013/ Online - JavaScript Injection Using Embed JavaScript PatternFeb 06, 2017. In this article, we will see how to implement embed JavaScript pattern in real time business applications.
- Web API Architecture And Dependency Injection Best PracticesFeb 06, 2017. In this article, you will learn about Web API architecture and Dependency Injection best practices.
- Dependency Injection To The CoreDec 29, 2016. In this article, you will learn about the evolution of Dependency Injection from ASP.NET to ASP.NET Core.
- Accessing Identity And HttpContext Info Using Dependency Injection In .NET CoreOct 11, 2016. In this article, you will learn how to access Identity and HttpContext Info using Dependency Injection in .NET Core.
- View Injection In ASP.NET Core MVCAug 09, 2016. In this article, you will learn about View Injection in ASP.NET Core MVC.
- Blocking SQL Injection On IIS 7 And Later VersionsJul 26, 2016. In this article, I am discussing the way to block the SQL injection at IIS level.
- Sql Injection Through Query String And Its Prevention MechanismJul 17, 2016. In this article, you will learn about SQL Injection through Query String and its prevention mechanism.
- SQL Injection With Base64 And Its Prevention MechanismJul 04, 2016. In this article, you will learn about SQL injection with Base64 and its prevention mechanism.
- Dynamic SQL Query Injection And Its Prevention MechanismJun 20, 2016. In this article, you will learn about dynamic SQL query injection and its prevention mechanism.
- SQL Injection With Hex Code And Its Prevention MechanismJun 17, 2016. In this article, you will learn about SQL Injection with Hex code and its prevention mechanism.
- Implement Dependency Injection in Web API With Simple InjectorJun 09, 2016. In this article, I will discuss about how we will implement dependency injection in Web API with the help of a simple injector.
- Implement Dependency Injection In Web APIJun 07, 2016. In this article, I will discuss how we will implement dependency injection in WEB API with the help of a simple injector.
- Dependency Injection In ASP.NET CoreMay 18, 2016. This article explains the dependency injection feature available out of the box in ASP.NET core (ASP.NET 5).
- AngularJS From Beginning: Dependency Injection - Part 11May 17, 2016. In this article, we will discuss how to use dependency injection in AngualrJS. This is part 11 of the article series.
- SQL Injection In Dynamic SQLApr 17, 2016. In this article you will learn about SQL Injection in Dynamic SQL.
- Dependency Injection Using NinjectFeb 10, 2016. Here I am going to explain how to implement dependency injection using Ninject.
- Dependency Injection Using Microsoft UnityFeb 07, 2016. In this article I am going to explain what dependency injection is and how to achieve dependency injection using Microsoft Unity.
- Dependency Injection in MVCJan 25, 2016. In this article you will learn about Dependency Injection in MVC.
- WCF Service Injection In Controller Using Castle WindsorJan 11, 2016. In this article you will learn how we can inject WCF service dependency in the controller in ASP.NET MVC.
- Implementing Repository Pattern And Dependency Injection In ADO.NET Using Generics In C#Dec 13, 2015. In this article you will learn about implementing Repository pattern and Dependency Injection in ADO.NET using Generics in C#.
- Property Injection In C# Dec 03, 2015. In this article you will learn about Property Injection in C# language.
- Dependency Injection AnalogyOct 22, 2015. In this article you will learn about Dependency Injection Analogy in C# context.
- Dependency Injection In AngularJSOct 14, 2015. In this article you will learn about Dependency Injection in AngularJS. Dependency Injection is a software design pattern in which objects are passed as dependencies.