In software engineering, double dispatch is a special form of multiple dispatch, and a mechanism that dispatches a function call to different concrete functions depending on the runtime types of two objects involved in the call. In most object-oriented systems, the concrete function that is called from a function call in the code depends on… Continue Reading
This tutorial introduce setup process for scheduled tasks in New Relic tool. This tutorial assume that New Relic .NET agent is installed and running. First of all we need to locate file called “CustomInstrumentation.xml”. Usually it can be found under “_installation_path_\New Relic\.NET Agent\Extensions” folder. If this file does not exist, please create one. The content should be… Continue Reading
Enough with the boring stuff ! Today we gonna hide our super secret information in the image file 🙂 Why we might even think about it ? Well, it could be a lot of reasons, but among them is to hide sensitive information or even create invisible watermark. Nowadays a lot of companies deploy such kind… Continue Reading
When it is about performance we should remember it is assumable that in our mind on critical parts (hot paths) which used most frequently. They will produce most noticeable (from performance perspective) results. Related to VB.NET: There are different casts available in VB.NET : DirectCast() – most effective and strict operator among all mentioned below… Continue Reading
Dependency Injection is one of the assets in software engineering allowing to developer reduce tight coupling between entities. But first allow me to share some code. It would be easy to introduce concepts based on some examples. Let’s assume we need to write code which according to selected type of communication should send confirmation data to… Continue Reading
Sometime we need to update UI from a task. In order to update UI we should run or return result in UI thread. But it seems to impossible since all tasks run on threads provided by ThreadPool. But still, we can achieve updating UI from the task by using synchronization context Task Scheduler.
We all worked with ContinueWith() method but there are some interesting and useful facts we should be aware of. First of all lets remember what is Continuation regarding the Tasks. When we looking for this definition in MSDN , we see following:< Creates a continuation that executes asynchronously when the target Task completes.
Developers can define parent-child relationships between task. The main idea is, parent task is completed when all its children tasks are completed.
Today my point of interest is Thread vs Task. Finally i had a little amount of time between projects to dive deeper in order to “examine” the difference. Actually when you ask people what is the difference you hear a lot of different things but the feeling that this point is not organized enough for… Continue Reading