All posts with Tag C#
Always use CancellationToken in PeriodicTimer!
Misusing PeriodicTimer can make your application inefficient!
Running multiple Tasks: Maybe Task.WhenAll is not the best choice!
Considering a better approach rather than Task.WhenAll
Integration Test: Mock PartOf a class
We will learn how to mock only a part of a class.
Template Method pattern: Make your application plug-in-able
Let's refactor a code and use the Template Method Pattern
FluentValidation: Stop checking rules on the first failure!
No need to check all validations when one of them fails.
What is AsyncServiceScope and When to use it?
Let's see how .NET fixed the IAsyncDispose issue!
A closer look at StringValues in C#
Let's see the why, what and how behind StringValues type.
xUnit: How it runs IClassFixture and Collections
A reminder of how IClassFixture
works in xUnit.
In-Memory Cache Consideration
In-Memory cache allows storing data within the application's memory
.
Create IOptions<T> for Unit Testing
Writing a Unit Test for a class that accepts IOptions
Shallow Copy and Deep Copy
In general, when we try to copy one object to another object, both objects will share the same memory address. It's about how objects are saved in Stack and Heap.
Why gRPC is high-performance?
Let's get to know why gRPC is high-performance?