예제 #1
0
        private void ContentSealed(IContent item)
        {
            IContentWithUid content  = (IContentWithUid)item;
            IUidProvider    provider = this.getGlobalObject <IUidProvider>();

            provider.registerUid((string)content.uid, item.guid);
            content.contentSealed -= ContentSealed;
        }
예제 #2
0
        public IContent create()
        {
            T            result   = new T();
            IUidProvider provider = this.getGlobalObject <IUidProvider>();

            result.uid            = provider.getUid();
            result.contentSealed += ContentSealed;
            return(result);
        }