Добавлено: 25 ноября 2021 г.
Today, we are going to cover uploading and downloading multiple files using ASP.Net Core 5.0 Web API by a simple process.
Note: This same technique works in .Net Core 3.1 and .Net Core 2.1 as well.
Begin with creating an empty web API project in visual studio and for target, framework choose .Net 5.0.
No external packages were used in this project.
Create a Services folder and inside that create one FileService class and...
далее...
Добавлено: 22 ноября 2021 г.
Dispose and Finalize are two methods you often use to release resources occupied by your .NET and .NET Core applications running in the context of the CLR. Most importantly, if you have unmanaged resources in your application, you should release the resources occupied by such resources explicitly.
Due to the non-deterministic nature of finalization and because finalizers are costly in terms of performance, the Dispose method is used much more frequently...
далее...