What should developers do today to prepare for....
Brad Adams speaks here about what should you focus on when writing .net code.
I agree absolutly (it's easy to agree with him), I encountered a situation where we needed Queued Components insode com+, since QC have some restriction on them like, parameters are always [in] (that's ok) and they must be either simple types the universal marshaler(com) knows or types that support the IPersisStream....
now that's wrong for .net... isn't [Serializable] enough... well sure it's enough , for .net offcourse.
since QC has nothing to do with .net (except for the ability to derive from ServiceComponent and put some attributes) the marshaler is the com one and not the CLR.
I had 2 options:
1. implement IPersisStream, it's easy enough.
2. not pass the objects as objects but rather serialize them as array of bytes (somthing that com understands). sure I'll need do deserialize once I'm in the QC.
I chose number 2 although it seems a bit ugly, that's because I'm trying to code .net as much as possible and remove all the dependencies of COM, I have no doubt that some time in the future (2006 ;)) ) or so, .net will be every where , it will be the foundation of which windows will be built upon. then com will disappear and we will be left with the clr alone (wooopy).
well that's my rule about using QC....
Comments
- Anonymous
June 02, 2003
i want to see more blogs from YoSSmentor!!!
Brad Adams speeks.... I'm absolutely agree with Yosi Taguri from M.... D... Mentor