Category: MS DotNet
-
How to Generate Thumbnail from a Video in C# Dotnet Core.
We have been generating thumbnails from image and we all know how easy is this in todays world with some awesome libraries available to us . But when coming to generate a thumbnail from a video in C# we are left with very limited option. But to our rescue is a beautiful library Xabe.FFmpeg by […]
-
I didn’t know it was this easy to handle Exceptions in .Net Core Web API. EasyException !!
An exception is a problem that arises during the execution of a program. A C# exception is a response to an exceptional circumstance that arises while a program is running, such as an attempt to divide by zero. Exceptions provide a way to transfer control from one part of a program to another. C# exception […]
-
Execute a piece of C# code anytime in VS Code using .NET Interactive Notebooks
.Net Interactive Notebooks is an extension being developed by Microsoft, and this extension adds support for using .NET Interactive in a Visual Studio Code notebook. The source code to this extension is available on https://github.com/dotnet/interactive and licensed under the MIT license. Getting Started Install the latest Visual Studio Code. Install the latest .NET 5 SDK Install the .NET Interactive Notebooks […]
-
Understanding and Validating JWT using Json Web Key Sets in Microservices
Before we jump on the approach of validating the JWT Token we need to know a few basics and then we can discuss about the below points. How we can sign the JWT Token. Why do we require a JWT Token to be signed. What is JSON Web Key Set ? Why and How to use […]
-
“Unable to verify secret hash for client ” error from my Amazon Cognito user pools API when called from AWS Lambda ?
When I try to invoke my Amazon Cognito user pools API, I get an “Unable to verify secret hash for client <client-id>” error. How do I resolve the error? As per documentation When a user pool app client is configured with a client secret in the user pool, a SecretHash value is required in the API’s query argument. If a secret hash […]
-
What do you mean by Encryption and how does it work?
Before we proceed towards learning Encryption we should take a look at the application that help us under a basic of what encryption does. In the below Sample you can create multiple simple record of you username and password and encrypt it using a single password and download it. https://coderusty.github.io/cryptpass.io/ Encryption is a process that […]
-
Code Coverage in .NET Core Projects
If you have created a unit test project in .NET Core, then you must have noticed a NuGet package, coverlet.collector, is installed in the default project templates for MSTest and xUnit. What does this NuGet package do? The coverlet documentation (link) tells us that coverlet is a cross platform code coverage framework for .NET, with support for line, branch and […]
-
Open Source Testing Tools in C#
NUnit NUnit is a unit-testing framework for all .Net languages. Initially ported from JUnit Go To NUnit NUnitForms NUnitForms is an NUnit extension for unit and acceptance testing of Windows Forms applications. Go To NUnitForms dotunit dotunit is a port of JUnit (www.junit.org) to the Microsoft .net platform. This testing framework allows for automated unit […]
-
Check if Silverlight is available on the browser? Detect if Silverlight is Installed !!
Though its 2020, and its time the cutting edge JavaScript libraries and frameworks are dominating the web market space. There are still some legacy code still using the .NET Frameworks and somewhere kept still in use and no one dare to affect the running business and why should one invest on something which is still […]
-
Get started with .NET Core
This article provides information on getting started with .NET Core. .NET Core can be installed on Windows, Linux, and macOS. You can code in your favorite text editor and produce cross-platform libraries and applications. If you’re unsure what .NET Core is, or how it relates to other .NET technologies, start with the What is .NET overview. Put […]