Concepts

Security Concepts:

1. Active Directory Authentication

2. Azure Active Directory Authentication

3. Click Once Security-> Project solution properties-> singing->Create test certificate-.Enable Click Once Security










Web API:

Web API is a programming interface/application type that provides communication or interaction between software applications. Web API is often used to provide an interface for web sites and client applications to have data access. Web APIs can be used to access data from a database and save data back to the database. 
Web API as the name suggests, is an API over the web which can be accessed using HTTP protocol. It is a concept and not a technology.

ASP.NET Web API

The ASP.NET Web API is an extensible framework for building HTTP based services that can be accessed in different applications on different platforms such as web, windows, mobile etc.  It is like a webservice or WCF service but the exception is that it only supports HTTP protocol.









https://www.tutorialsteacher.com/webapi/what-is-web-api

  1. ASP.NET Web API is an ideal platform for building RESTful services.
  2. ASP.NET Web API is built on top of ASP.NET and supports ASP.NET request/response pipeline
  3. ASP.NET Web API maps HTTP verbs to method names.
  4. ASP.NET Web API supports different formats of response data. Built-in support for JSON, XML, BSON format.
  5. ASP.NET Web API can be hosted in IIS, Self-hosted or other web server that supports .NET 4.0+.
  6. ASP.NET Web API framework includes new HttpClient to communicate with Web API server. HttpClient can be used in ASP.MVC server side, Windows Form application, Console application or other apps.

Dependency Injection Design Pattern in C#?
The Dependency Injection is a design pattern that allows us to develop loosely coupled software components. In other words, we can say that this design pattern is used to reduce the tight coupling between the software components. As a result, we can easily manage future changes and other complexity in our application.
Dependency Injection (DI) is a design pattern used to implement IoC. It allows the creation of dependent objects outside of a class and provides those objects to a class through different ways. Using DI, we move the creation and binding of the dependent objects outside of the class that depends on them.


What is Tight Coupling in Software Design?
Tight coupling means classes and objects are dependent on each other. That means when a class is dependent on another concrete class, then it is said to be a tight coupling between these two classes. In that case, if we change the dependent object, then we also need to change the classes where this dependent object is used. If your application is a small one, then it is not that difficult to handle but if you have a big enterprise-level application, then its really very difficult to handle to make these changes.
What is Loose Coupling in Software Design?
Loosely coupling means two objects are independent of each other. That means if we change one object then it will not affect another object. The loosely coupled nature of software development allows us to manage future changes easily and also allows us to manage the complexity of the application.
What is Dependency Injection Design Pattern in C#?
The Dependency Injection Design Pattern in C# is a process in which we are injecting the object of a class into a class that depends on that object. The Dependency Injection design pattern is the most commonly used design pattern nowadays to remove the dependencies between the objects.
Different Types of Dependency Injection in C#?
We can implement the Dependency Injection in C# in three different ways. They are as follows.
Constructor Injection: When we supply the dependency object through the client class constructor, then it is called as Constructor Injection.
Property Injection: When we supply the dependency object through the public property of the client class, then it is called as Property Injection.
Method Injection: When we supply the dependency object through a public method of the client class, then it is called as Method Injection.
Here, in this article, I will discuss how to inject the dependency object through the constructor. In the next article, I am going to discuss the Method and Property Dependency injection in C# with examples.

Inversion of Control (IoC)

Inversion of Control is a technique to implement the Dependency Inversion Principle in C#. Inversion of control can be achieved by using interfaces or abstract class. The rule is that the lower level modules should sign up the contract to a single interface and the higher level module will consume only modules that are implementing the interface. This technique removes the dependency between the modules.


Comments

Popular posts from this blog

Microsoft Enterprise Library-Data Access Application Block for for .Net Core & .Net Standard

Asp .Net Core

Asp .Net Core -Startup Class and the Service Configuration