A less known yet usefull component in dotnet is the TypeConverter component. This component provides means to convert between data types. If you are wondering which data types are by default supported, just take a look under the hoodRead more
A less known yet usefull component in dotnet is the TypeConverter component. This component provides means to convert between data types. If you are wondering which data types are by default supported, just take a look under the hoodRead more
Description GRPC represents big step in microservices communication for speed and performance overall. I am using GRPC with great pleasure and one major advantage for me as a developer is the ease and speed of development because the compiler takes care of generating both the client and the server. I am personally against using RESTRead more
Description I have been using for a while GRPC with c# to learn and test it’s capabilities. I recently installed on a secondary computer Kubuntu and docker and tried to make use of GRPC service by calling it from my laptop. This has failed because it requires a valid certificate for that (well..at leas aRead more
Download the solution here. Description There are multiple ways to achieve performance in designing our web applications and while some of them include optimizations at an architectural or infrastructure level, there is also the case of the size of data which is delivered over the wire. We do have the tendency to use what isRead more
In my previous article Parameters in RevitApi I used the get_Parameter method which is obsolete since RevitAPI 2015. I am referrencing Revit2018 and the methods are not removed, maybe there are still present for compatibility reasons or maybe they plan to remove the in the future: In the documentation now we have LookupParameter but thisRead more
Getting parameters in RevitAPI is a challenging task. I have had some serious headaches trying to wrap my head around the what, where and huh of the parameters. Maybe it’s because of the lack of proper documentation from Autodesk. I mean, I get it, they have a list of ALL MEMBERS, well…pff, it’s not alwaysRead more
Click to download the source file Yet another article about MONGO! This article is about retrieving data in mongo and tweaking the retrieval method to accommodate some project requirements. I am not an expert in working with Expression trees, but some methods are quite easy to use and provide a great deal of flexibility inRead more
When we want to configure the identity server, we can start from the quickstart template and make the changes there. This quickstart provides all the interactions that we need, and sometimes more then we need. But we need to inject our data and this usually comes from the database. You can get the quickstart fromRead more
With mongo some operations will return a dynamic object, usually wrapped in an expando object. To deserialize the expando object in the target class is quite simple, I actually looked in the source code to see how the driver performs this operation. If you look at the test involving the dynamic type here (https://github.com/mongodb/mongo-csharp-driver/blob/b473de06f9bf3587b3a00f52ba2678d9aed71d74/tests/MongoDB.Bson.Tests/Serialization/Serializers/ObjectSerializerTests.cs) youRead more
The mongo driver offers a rich and complete infrastructure to create rich domain entities out of the box. The bson serializer integrated with the mongo driver can tackle all types of entities, it can deserialize entities with private setters and constructors, allowing us to define our entity methods and limit property access. Cloning an entityRead more