In the previous article, junqilian used Amazon Simple Queues Service (SQS) to achieve remote interaction with AutoCAD. This article describes how to use Amazon Simple Queue Service (SQS ), here we will introduce how to use Microsoft's Windows Azure Queue Storage to implement similar functions. This is also an improvement. Generally, the most intuitive message passing is a string, but other types such as common objects can also be passed through the queue. This article describes how to pass an object to the AutoCAD plug-in through Windows Azure Queue Storage and draw it out in AutoCAD.
The passing object here is basically completed through a string, because I actually serialize this object into a JSON string and put the JSON string in the cloud queue, the client obtains the JSON string and then deserializes it into an object. In view of this problem, it is still quite extensive, So I published it to ADN DevBlog AutoCAD using E. Here I will make a Chinese abstract briefly.
To develop a Windows Azure cloud application, you must first download and install the Windows Azure SDK. Then we create two projects, one is the Sender. For simplicity, this is a console application, add referenceMicrosoft. WindowsAzure. StorageClient. dll, Which can be found in the installation directory of the Windows Azure SDK. To achieve serialization and deserialization, you need to addSystem. Web. Extension. dllTo call the Serialize and Deserialize methods of JavaScriptSerializer.
Okay. For details, go to ADN DevBlog AutoCAD and check the Code :)