Esempio n. 1
0
        public static SyncEntityPrototype DecodeSyncEntity(string body)
        {
            var prototype = new SyncEntityPrototype();

            try
            {
                prototype.DecodeFrom(body);
            }
            catch {
                throw;
            }

            return(prototype);
        }
Esempio n. 2
0
        public static string EncodeSyncEntity(SyncEntity src)
        {
            var syncBody = new SyncEntityPrototype(src);

            return(syncBody.Encode());
        }