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

# PdxAutoSerializer Example This is a simple example showing how to register for auto-serialization of custom objects using the ReflectionBasedAutoSerializer 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 PdxAutoSerializer.exe.

    output:

    Registering for reflection-based auto serialization
    Storing order object in the region
    order to put is Order: [65, Vox AC30, 11]
    Successfully put order, getting now...
    Order key: 65 = Order: [65, Vox AC30, 11]