tree: 0cb1396aa4f7b39fd3499fe47f406658a17974a9 [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]