Example #1
0
        static public StringPairProxy GenProxy(this EntityDigest digest)
        {
            var stringPairProxy = new StringPairProxy(digest.Digest);

            stringPairProxy.StringPairUpdatedEvent += updatedStringPair => digest.Digest = updatedStringPair;
            return(stringPairProxy);
        }
Example #2
0
        static public TIAttributes GetAttributesEntity <Entity, TIAttributes>(Entity entity)
        {
            dynamic it = entity;
            var     stringPairProxy = new StringPairProxy(it.Attributes);

            stringPairProxy.StringPairUpdatedEvent += updatedStringPair => it.Attributes = updatedStringPair;
            return(stringPairProxy.GenEntityProxy <TIAttributes>());
        }