private void ContentSealed(IContent item) { IContentWithUid content = (IContentWithUid)item; IUidProvider provider = this.getGlobalObject <IUidProvider>(); provider.registerUid((string)content.uid, item.guid); content.contentSealed -= ContentSealed; }
public IContent create() { T result = new T(); IUidProvider provider = this.getGlobalObject <IUidProvider>(); result.uid = provider.getUid(); result.contentSealed += ContentSealed; return(result); }