Hi
My recent purchase of a new passion red colour semi sports model car has been keeping me busy for a while, But I still love my black SUV which has been with me all these days.
On Orcas,
While we have completed impementing most of the planned features , I have taken a resolution to do regular contribution to my blogs,
In this blog, I would like to introduce Managed Connectivity APIs is Orcas Jan CTP (http://www.microsoft.com/downloads/details.aspx?familyid=69055927-458B-4129-9047-FCC4FACAE96C&displaylang=en)
These APIs will help device programers write Remote tools with ease. I have also created a Hands-On-Lab session and a starter kit for the device programers. I hope developers would get to see the hands on lab in the forth coming MEDC session. The starter kit will most probably make it into product. A new college graduate was excited to work with me on these APIs especially on the starter kit. So in the coming days I shall present more details about the starter kit. However if you guys have any suggestions on the starter kit and how would like this to be, please do let me know, I would also be looking out for feedback on these APIs
If there are good suggestions worth implementing in Orcas schedule, then we shall definetely give it a try.
To illustarate how easy it is to use these APIs i am pasting a small code snippet here to select a device and connect(I have typed in this code here)
DatastoreManager dsmgrObj = DatastoreManager.GetInstance(1033); // Get a Handle to Datastore Manager Class passing the locale ID, Please note that in next CTP, this API might change.(i.e singleton pattern may be scrapped. I would love to see people guess the reason behind such a decision.) IEnumerable<Platform> platformcollection = dsmgrObj.GetPlatforms();
foreach (Platform objplatform in platformcollection){ IEnumerable<Device> pdeviceCollection = objplatform.GetDevices(); foreach (Device objdevice in pdeviceCollection) { if(objdevice.Name.Contains("Windows Mobile 5.0 PocketPc emulator")) { objdevice.Connect(); } }//foreach (Device objdevice in devices_list)}//foreach (Platform objplatform in platform_Array)
Happy programing !!!
Thanks
Srikanth Bogadapati