public MyStatefulService(StatefulServiceContext context, InitializationCallbackAdapter adapter) : base(context, new ReliableStateManager(context, new ReliableStateManagerConfiguration(onInitializeStateSerializersEvent: adapter.OnInitialize))) { adapter.StateManager = this.StateManager; }
public static void RegisterBondStateSerializer <T>(this InitializationCallbackAdapter adapter) => adapter.RegisterStateSerializer <T>(new BondStateSerializer <T>());