Example #1
0
        public static void RegisterSurrogateForSurrogate()
        {
            var signature = SurrogatesDirectory.ValidSignature("surr");

            SurrogatesDirectory.RegisterSurrogate(
                signature: signature,
                supportedType: typeof(StateObjectSurrogate),
                applyBindingAction: null,
                serializeEx: Serialize,
                deserializeEx: Deserialize);
        }
Example #2
0
        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 }
                );
        }