Blogs Hub

by AskGif | Aug 05, 2019 | Category :coding

Implementing .NET Core Logging Levels and Categories

Implementing .NET Core Logging Levels and Categories

In .NET Core. One thing that I never implemented was granular control of logging specific levels by category. It turns out that it’s pretty easy to do, though. Logging in .NET Core passes LogLevel and Category whenever something is to be logged. Category corresponds, afaik, to namespaces. Y

read more...

by AskGif | Jun 25, 2019 | Category :coding

Implementing Load Balancer with Nginx and Docker

Implementing Load Balancer with Nginx and Docker

The <a title="Nginx Reverse Proxy to ASP.NET Core &ndash; In Separate Docker Containers" href="../../../../../blog/406/nginx-reverse-proxy-to-asp-net-core-in-separate-docker-containers/" target="_blank" rel="noopener">previous post (Nginx Reverse Proxy to ASP.NET Core &ndash; In Separate Docker C

read more...

by AskGif | Jun 25, 2019 | Category :coding

Nginx Reverse Proxy to ASP.NET Core In Separate Docker Containers

Nginx Reverse Proxy to ASP.NET Core In Separate Docker Containers

The <a title="Nginx Reverse Proxy to ASP.NET Core &ndash; In Same Docker Container" href="../../../../blog/405/nginx-reverse-proxy-to-asp-net-core-in-same-docker-container/" target="_blank" rel="noopener">previous blog post (Nginx Reverse Proxy to ASP.NET Core &ndash; In Same Docker Container)</a

read more...

by AskGif | Jun 25, 2019 | Category :coding

Nginx Reverse Proxy to ASP.NET Core In Same Docker Container

Nginx Reverse Proxy to ASP.NET Core In Same Docker Container

As mentioned in the <a title="Hosting ASP.NET Core in Docker" href="../../../../blog/404/hosting-asp-net-core-in-docker/" target="_blank" rel="noopener">previous post (Hosting ASP.NET Core in Docker)</a>, it is recommended to use something other than Kestrel as the front-line web server. In this

read more...

by AskGif | Jun 24, 2019 | Category :coding

Hosting ASP.NET Core in Docker

Hosting ASP.NET Core in Docker

The containerization trend has been growing for a while now in the industry. The idea is to &ldquo;containerize&rdquo; (or package) any application into a well-defined container. This allows the same packaged application to be deployed to run on any infrastructure. &nbsp; In other

read more...

by AskGif | Dec 24, 2018 | Category :coding

What is the difference between .NET Core and .NET Standard Class Library project types?

What is the difference between .NET Core and .NET Standard Class Library project types?

Question: In Visual Studio, there are at least 3 different types of class library you can create: &nbsp; Class Library (.NET Framework) Class Library (.NET Standard) Class Library (.NET Core) While the first is what we've been using for years, a maj

read more...

by AskGif | Nov 28, 2018 | Category :coding

Exception Handling in ASP.NET Core Web API

Exception Handling in ASP.NET Core Web API

Question: I started using ASP.NET Core for my new REST API project after using regular ASP.NET Web API for many years. I don't see a good way to handle exceptions in ASP.NET Core Web API. I tried to implement exception handling filter/attribute: <pre class="language-csharp"><code>pub

read more...

by AskGif | Nov 23, 2018 | Category :coding

How to Install Trusted Root Certificates in DotNet Core on Ubuntu

How to Install Trusted Root Certificates in DotNet Core on Ubuntu

Question : I'm getting an issue while deploying a .net-core web-API to a Docker container on Ubuntu. Everything works as expected, but from my application, I need to call other services via https and those hosts use certificates signed by self-maintained root certificates. &nbsp;<

read more...

by AskGif | Nov 22, 2018 | Category :coding

How to Install dotnet core on Ubuntu 16.04.5 ?

How to Install dotnet core on Ubuntu 16.04.5 ?

Before installing .NET, you'll need to register the Microsoft key, register the product repository, and install required dependencies. This only needs to be done once per machine. Open a command prompt and run the following commands: <pre class="language-markup"><code>wget -qO- https

read more...