Typescript decorators

The easiest way to understand decorators is to think of them as metadata that you can add to your classes,methods and even getter and setter properties In fact,you can add far more than just information You can actually extend these elements with additional behavior allowing you to add that behavior to your code without actually… Read More »

Essential Types in .NET Part-2

Nullable Value Types Nullable<T> -It can have a value or it can be null The Problem with Nulls What is new? -NullReferenceException is a bug. -Provide syntax to identify when we expect a null -Inconsistency with value types -Make the default expectations of ref types not null -Reduce likelihood of NullReferenceExceptions Enable by project for… Read More »

Essential Types in .NET

Primitive Types Boolean : true or false Int16, Int32, Int64 : signed integer values Byte :0 to 255 Uint16, UInt32, Uint64 : unsigned integer values SByte : signed byte values from -128 t0 127 Singe: 32-bit single-precision floating-point number Char : 16-bit Unicode character Double: 64-bit double-precision floating-point number Value Types Reference Types -Structures -Classes… Read More »

Problem starting MAUI app on windows machine

If you are getting such an error while debugging on windows machine while developing a maui applicationmaui has exited with code 2147942405 (0x80070005) SolutionYou can download the relevant runtime from here.https://learn.microsoft.com/en-us/windows/apps/windows-app-sdk/downloads#windows-app-sdk-12

Javascript Promises

Create a Javascript Promise A promise in JavaScript is exactly what it sounds like – you use it to make a promise to do something, usually asynchronously. When the task completes, you either fulfill your promise or fail to do so. Promise is a constructor function, so you need to use the new keyword to… Read More »

Assembly scanning with Scrutor

Scrutor is a fantastic library, which fills two gaps in the service registration functionality available in the Microsoft container by providing support for assembly scanning and using the decorator pattern One of the features of Scrutor is providing assembly scanning supportOne of the features of Scrutor is providing assembly scanning support public static class SampleServiceCollectionExtensions… Read More »

Run web api project via command line over Visual Studio

If you have created a Web Api project and want to run it via command line via Visual Studio You must first download the Productivity Power Tools plug-in from this address https://marketplace.visualstudio.com/items?itemName=VisualStudioPlatformTeam.ProductivityPowerPack2017 After you should right click on the service project Choose Power Commands and the Open Command Prompt That will open up a command… Read More »

Generate a private and public key,cer and pfx file using OpenSSL

1.Download Open SSL 2.To run the commands below, go to the OpenSSL32 directory on your PC, and change to the /bin directory. 3.The basics command line steps to generate a private and public key using OpenSSL are as follows openssl genrsa -out privatekey.pem 1024 openssl req -new -x509 -key privatekey.pem -out publickey.cer -days 1825 openssl… Read More »

A brief overview of unit tests

UNIT TESTING Unit testing is the process in which tiny testable parts of a program, referred to as units,are independently tested for expected functionality It could be either automated or manually done There is a lot of different approaches to testing an application   Different kinds of Test Approaches -Acceptance testing         … Read More »