-
Articles récents
Commentaires récents
Archives
Catégories
Méta
Archives de l’auteur : poppyto
How to Start or Stop resources in Aspire by code
You may wanted to Start or Stop some resources during the tests with Aspire – by example when using DistributedApplicationTestingBuilder. Unfortunately, there’s no easy API for now, but you can do it (without reflection) but you have to use at … Continuer la lecture
Publié dans Non classé
Laisser un commentaire
How to resolve dynamic TargetPort in Aspire
Aspire is a really great technology for interconnecting all kind of services. It’s so good that you will probably use it in all your old projects.Ports randomization+proxy is a really good feature to spawn all your services, and maybe launch … Continuer la lecture
Improve Windows Docker Containers Performances in isolation Process
If you use Windows Server, default isolation of containers are « process« . The good news is you will have best CPU performance with this mode(no hyperV). You can also run container in isolation process on your dev Windows machine like this … Continuer la lecture
Publié dans Non classé
Laisser un commentaire
Deserialize nested Array property with Stream in JSON.net
Sometimes, you have to deal with importing big data files and the data is not really what you’ve expected. Here is a solution for handling Deserializing data with a nested property (array). You may need to add a Depth parameter … Continuer la lecture
Publié dans Non classé
Laisser un commentaire
Optimize IN clause with LINQ Entity Framework with Ranges
Problem Suppose you have this simple query : if ids contains one million number, Linq provider will write a giant query like : You will have an exception because it’s too much for the SQL provider to execute this query.You’ll … Continuer la lecture
Publié dans Non classé
Marqué avec c#, Entity Framework, in, linq, million, performance
Laisser un commentaire
TextBox Autocomplete – Crash AccessViolationException – Workaround
It seems a nogo, but there’s a bug with AutoCompletion on Winforms since years. (.net7 here)The only way to make it work is to set the source only once.If you try to have a dynamic Suggestion, you could set : … Continuer la lecture
The solution for validating an email address (RFC compliant) in .net C#
It’s a common question : “How can I validate one email address” ? There are 0b10 (2) types of developers : lazy and ignorant. Lazy people always wins, because they do not reinventing the wheel, they prefer to search already done API. Ignorant people will probably use … Continuer la lecture
Publié dans Non classé
Laisser un commentaire
WinRT Apps : Slow Compilation when you add WinRT components : Solution
PROBLEM When you create a Blank WinRT project (W8 or WP8.1) with Visual Studio, if you compile as it, it takes : 2 seconds => great ! BUT, if you just add a simple WinRT component library (winmd) as reference and build, it takes 12 to 15 … Continuer la lecture
Publié dans Non classé
Laisser un commentaire
Solution to Empty Emulator List (plus 0x80070002) in Windows Phone SDK 8
Sometimes, Visual Studio fails and you can’t do anything. You can repair or reinstall but in this case it’s not works. PROBLEM : You can’t see any Emulators on Visual Studio : and when you try to compile it throws … Continuer la lecture
Publié dans Non classé
Laisser un commentaire
Solution for blurry rendering with DirectX11 on Windows Phone 8
If you experienced a global blurry rendering on your screen when you use DirectX11 on your Windows Phone 8, you probably fails a thing : The swapchain size must be the screen size (means portrait), not the landscape size. So : swapChainDesc.Width = 800;// swapChainDesc.Height = … Continuer la lecture
Publié dans Non classé
Laisser un commentaire