O'Reilly logo

.NET Patterns: Architecture, Design, and Process by Christian Thilmany

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Invoking Our Framework from the ProductX Web Client

The implementation examples for the server components I just went through would not be complete without the sample code that drives them. The code snippet in Listing 6.20 shows how you can generically prepare and call into the Commercial Framework using the helper methods shown. Here you begin by preparing a Packet object (DataSet with XML schema) on the client, fill the Packet with instance data from any external interface, and send it to the server with an entry-point method (Execute method) to invoke one of the business methods provided by ProductX. The ServerExecute method takes any “action” and relays it to the server for a response. Several helper methods have been provided, such as PreparePacket(). ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required