Skip to content

Duong's Blog

About technology stuff that piqued my interest

  • English
  • Vietnamese
  • About me

Tag: C#

  • Home
  • C#

Điều khiển thời gian trong unit test C#

March 23, 2022December 6, 2022 duongnt.bk1 Comment on Điều khiển thời gian trong unit test C#

Việc test các hàm phụ thuộc vào thời gian chạy là tương đối phức tạp. Thật may là các package NodaTime và NodaTime.Testing có thể giúp ta giải quyết vấn đề này.

C#, Vietnamese C#, NodaTime, testing

Time dependent unit testing in C#

March 23, 2022December 6, 2022 duongnt.bk1 Comment on Time dependent unit testing in C#

Testing time dependent classes can be tricky. Fortunately, the NodaTime and NodaTime.Testing package can assist us in resolving this issue.

C#, English C#, NodaTime, testing

Đồng bộ sử dụng Interlocked trong C#

December 29, 2021January 3, 2022 duongnt.bk2 Comments on Đồng bộ sử dụng Interlocked trong C#

Phương pháp đồng bộ phổ biến nhất trong C# .NET là sử dụng lock. Nhưng trong nhiều tình huống, Interlocked có hiệu năng vượt trội.

C#, Vietnamese C#, performance, synchronization

Synchronization with Interlocked in C#

December 27, 2021December 29, 2021 duongnt.bk3 Comments on Synchronization with Interlocked in C#

The most common way to synchronize threads in C# .NET is using the lock keyword. But in many situations, the Interlocked class can provide superior performance.

C#, English C#, performance, synchronization

Dùng Amazon SQS để kết nối các service – Phần 1

November 26, 2021March 29, 2022 duongnt.bkLeave a Comment on Dùng Amazon SQS để kết nối các service – Phần 1

Message queue là giải pháp lý tưởng để kết hợp nhiều service. Và Amazon SQS khiến việc sử dụng message queue trở nên dễ dàng hơn.

C#, Vietnamese C#, message queue, sqs

Amazon SQS based services integration – Part one

November 25, 2021March 29, 2022 duongnt.bk1 Comment on Amazon SQS based services integration – Part one

Message queue help us integrate services written in different languages. And Amazon SQS makes working with message queue easy.

C#, English C#, message queue, sqs

Đọc file Numpy bằng C# và NumSharp

November 18, 2021December 6, 2022 duongnt.bk1 Comment on Đọc file Numpy bằng C# và NumSharp

Có nhiều thư viện hỗ trợ tính toán khoa học trong C#. Một trong số đó là NumSharp, một bản port của Numpy. Hôm nay, ta sẽ dùng nó để đọc file Numpy.

C#, Python, Vietnamese C#, numpy, python

How to read Numpy files in C# with NumSharp

November 17, 2021December 6, 2022 duongnt.bk3 Comments on How to read Numpy files in C# with NumSharp

There are many library to support scientific computing in C#. One of them is NumSharp, a port of Numpy in C#. Today, we will use it to read Numpy files.

C#, English, Python C#, numpy, python

Customize OpenAPI Generator with Mustache template

October 31, 2021October 31, 2021 duongnt.bkLeave a Comment on Customize OpenAPI Generator with Mustache template

The OpenAPI Generator tool can help us generating API clients from the OpenAPI Spec. But what if we want to add some modification? Enter the Mustache template.

C#, English api, C#, Mustache, openapi generator

Tùy biến OpenAPI Generator với Mustache template

October 31, 2021October 31, 2021 duongnt.bk1 Comment on Tùy biến OpenAPI Generator với Mustache template

OpenAPI Generator giúp ta sinh code cho API client mà chỉ dựa vào file OpenAPI Spec. Và khi ta cần tùy biến client đó, ta có thể sử dụng Mustache template.

C#, Vietnamese api, C#, Mustache, openapi generator

Posts navigation

Older posts
Newer posts
Copyright © 2025 Duong's Blog All rights reserved. Theme: Flash by ThemeGrill. Powered by WordPress