The Vivensas Blog

Service Injection into View in ASP.NET Core

Service Injection into View in ASP.NET Core

This blog is about how dependency is injected directly into view. Let us look at it using a small example. The following is a ColorListService class that returns a list...

Readmore

ASP.NET Core Service Scope Singleton vs Scoped vs Transient

ASP.NET Core Service Scope

Singleton vs Scoped vs Transient This article describes the service scope in ASP.NET Core and the difference between AddSingleton, AddScoped and AddTransient  methods. Let us see the following example that...

Readmore

Turn on CircuitOption.DetailedError in Blazor

Turn on CircuitOption.DetailedError in Blazor

This article is going to explain how to enable CircuitOption.DetailedError in the development environment. Let us look at a small example. The following is the Blazor component code. It contains...

Readmore

Basic Event Handling in Blazor

Basic Event Handling in Blazor

This article is to explain how event handling works in Blazor. The @on{event} attribute in Razor is the event handling attribute. The {event} may be any event. For example, For...

Readmore

Data Binding in Blazor

Data Binding in Blazor

Data binding is one of the most important processes in an application. Data binding is achieved through the @bind attribute in the Blazor component. @bind attribute The following code is...

Readmore

Multiple Environments in ASP.NET Core

Multiple Environments in ASP.NET Core

An environment variable helps to indicate the environment  in which the application is running so that the developers can configure applications according to their needs.  ASP.NET core uses the ASPNETCORE_ENVIRONMENT...

Readmore

Exception Handler Middleware in ASP.NET Core

Exception Handler Middleware in ASP.NET Core

Exception Handling is important for any  application. The Exception Handler Middleware in  ASP.NET Core helps to configure the custom error handling process in the production environment. In this article let’s...

Readmore

Useful tips to make your Javascript code short

When we write a javascript code we often tend to write the code in a traditional way, which makes the code look bigger. Here are the some tips for you...

Readmore

What’s New in C# 8.0

Microsoft has a couple of exciting features in C#. This blog will brief about the new features for C# language. Default Interface Methods Default interface methods allow developers to use...

Readmore