The TaskCompletionSource class is the means by which we can create and “manage” a Task ourselves. By “manage” I mean implement the underlying mechanism that embodies the progression of an asynchronous activity including its completion or possible termination due to exceptions.
I feel rather fortunate to have developed interests in electronics and computing right at the beginning of the microprocessor era. Today’s generation are entering the technology, software and internet fields at a time when they are well established and the chaos, experimentation, excitement and optimism are somewhat less than they were forty years ago.
I’ve been informally exploring the whole microcontroller world recently; because I studied and wrote about electronics and hobby robotics in the past I have an ongoing fascination with these kinds of gadgets but have done very little in this area for years.
Imperia is the name I’ve given to my UPnP Control Point API that supports Windows Desktop, Windows Surface (WinRT) and Windows Phone 8. This project arose because I was interested in leveraging my C# skills on a Windows Phone 8 project, I setup a developer account at Microsoft and installed the Phone SDK as part of Visual Studio 2012 on a Windows 8 machine that I have.
C# allows you to declare raw pointers to memory, such pointers can only be declared and manipulated if the project in which they appear has the “Allow unsafe code” option enabled and the code block has the “unsafe” keyword specified.