tree: 5e5374fef34f5299e72d6ed25715738e7a341cf8 [path history] [tgz]
  1. Order.cs
  2. Program.cs
  3. README.md
  4. startserver.ps1
  5. stopserver.ps1
examples/dotnet/PdxSerializableCs/README.md

PdxSerializable Example

This is a simple example showing how to register for serialization of custom objects using the IPDXSerializable class.

Prerequisites

Running

  • Start Geode Server and create region.

    gfsh>start locator --name=locator
    gfsh>start server --name=server
    gfsh>create region --name=example_orderobject --type=PARTITION
    
  • Execute PdxSerializableCs.exe.

    output:

    Registering for data serialization
    Storing order object in the region
    order to put is Order: [65, Donuts, 12]
    Successfully put order, getting now...
    Order key: 65 = Order: [65, Donuts, 12]