Square Service

Version: 1.0

Description

This sample demonstrates how to create a WCF service that can run on Windows Azure compute nodes and how to create a client application that starts a WCF service job.

Overview

The HPC Square service demonstrates how to build, deploy, and execute an HPC SOA application that can run in Windows Azure. This sample includes a WCF service project and a client application that consumes it.

The client application demonstrates the interactive and durable session modes of the HPC SOA application, which are used to call a WCF service that is deployed to the HPC cluster, whether it resides in an on-premises node or in a Windows Azure node. The client application also demonstrates how to use the interactive session with both a service reference generated proxy and the BrokerClient class.

Note:
Though this sample was originally developed for Windows HPC Server 2008 R2 SP1, it has been verified to run under Windows HPC Server 2008 R2 SP2. The sample should preferably be run under Windows HPC Server 2008 R2 SP2.

Key Features

This sample demonstrates the following:

  • Creation of a WCF service and its configuration to run in an HPC cluster.
  • Deploying of the WCF service in the cluster (both on-premises and in Windows Azure).
  • Creation of a client HPC SOA application that calls the WCF service using the following session types:
    • Interactive session
    • Durable session
  • Sending of messages to the hosted WCF services using the following WCF client types:
    • Service reference proxy (generated by the Add Service Reference tool)
    • BrokerClient<T> generic class