Serving Industries Worldwide

Innovative Ways - Satisfied Clientele

What is Serilog in Asp.Net Core 3.1?


Table of Content 1. What is logging? 2. Serilog in ASP.NET core 3.1 3. Why we use Serilog? 4. Advantages of Serilog 5. Disadvantages of Serilog 6. Stepwise example of Swagger 7. Conclusion What is logging? Logging is an essential needed feature for detecting and examine issues in applications. Logging frameworks make it easy to log event data to Configure in Advance for log targets. However, if your log file carries unstructured data, it becomesa...

read more

Unit testing a custom middleware in ASP.NET Core with Interface


Table of Content 1. What is unit test? 2. How does the tests look like? 3. What is Middleware? 4. Advantages of Middleware 5. Send requests with HttpContext 6. Conclusion What is unit test? A unit test is a type of testing.It is the Small Part of code that can be logically in a Program and test that code is work properly that is testing. The latest versions of unit testing can be found in frameworks like JUnit, or testing tools like Test Complete. You will...

read more

How to use ELMAH for enumerating error in ASP.NET core?


Table of Content 1. Introduction to ELMAH 2. Why to choose ELMAH? 3. ELMAH HTTP Modules 4. Logging to elmah.io from ASP.NET Core 5. Configuring API key and log ID in options 6. Additional options 6.1. Events 6.2. Remove sensitive form data 7. Logging exceptions, errors to elmah.io using NLog 8. Conclusion Introduction to ELMAH ELMAH Stands for Error Logging Modules and Handlers that offers functionality to logging runtime ASP.NET errors. ELMAH...

read more

Ultimate guide for implementing Repository pattern and Unit of work for .NET core


The repository and unit of work patterns are deliberated to generate alayer between the data access layer and the business logic layer of any application. Executing these patterns can assistwrapping of your application from changes in the data store and can accelerate automated unit testing or test-driven development (TDD). Table of Content 1. What is the Repository pattern? 2. What is Unit of Work pattern? 3. Repository and Unit of Work pattern design 4....

read more

What is Swagger and how to use it in ASP.NET application?


Table of Content 1. What is Swagger? 2. What is the use of Swagger? 3. Example of Swagger Step by Step 3.1. Enable XML Project 3.2. Configuring Swagger in Startup class 3.3. Run the project 4. Conclusion What is Swagger? Swagger is one type of platform that provides the facility to access API data. In this detailed technical document,we will learn how a web service can reply to web requests from clients such as browsers. Swagger is a popular...

read more