Uptime Monitor Sample

The Uptime Monitor sample is a messaging-layer Windows Communication Foundation (WCF) client/server sample. The client is a Windows Forms application that runs on the device, and the server is a console application that runs on the .NET Framework on the desktop. This sample, which is available only in Visual C#, demonstrates a client that opens a request channel to find out how long the server has been running, and a server that opens a WCF reply channel in response.

Note

For more information about WCF on the .NET Compact Framework, see Windows Communication Foundation (WCF) Development and the .NET Compact Framework.

For information about using the samples, see the following topics:

To build and deploy the sample using Visual Studio

  1. Open Windows Explorer and navigate to the UptimeMonitorSample directory.

  2. Double-click the UptimeMonitorSample.sln file to open it in Visual Studio.

  3. Press F5 to compile and run the sample. You will be prompted to select whether to deploy the sample to a Pocket PC or to a Pocket PC emulator.

Requirements

Microsoft Visual Studio 2008 must be installed with the smart device development components. This includes the .NET Compact Framework version 3.5, which is required to build and run the sample. To compile the sample using msbuild.exe, see How to: Compile at the Command Prompt.

To install the .NET Compact Framework on the device, see How to: Install the .NET Compact Framework.

See Also

Other Resources

.NET Compact Framework