public static void RegisterSurrogateForSurrogate() { var signature = SurrogatesDirectory.ValidSignature("surr"); SurrogatesDirectory.RegisterSurrogate( signature: signature, supportedType: typeof(StateObjectSurrogate), applyBindingAction: null, serializeEx: Serialize, deserializeEx: Deserialize); }
public static void RegisterSurrogateForDataBinding() { var signature = SurrogatesDirectory.ValidSignature("dbin"); SurrogatesDirectory.RegisterSurrogate( signature: signature, supportedType: typeof(UpgradeHelpers.WebMap.Server.DataBinding), applyBindingAction: null, serializeEx: Serialize, deserializeEx: Deserialize, calculateDependencies: new SurrogateDependencyCalculation[] { CalculateDependencies } ); }