protected override void Created(CreateContentContext context, TPart instance)
 {
     if (OnCreated != null)
     {
         OnCreated(context, instance);
     }
 }
 void IContentHandler.Created(CreateContentContext context)
 {
     foreach (var filter in Filters.OfType <IContentStorageFilter>())
     {
         filter.Created(context);
     }
     Created(context);
 }
        public override void Creating(CreateContentContext context)
        {
            var infosetPart = context.ContentItem.As<InfosetPart>();
            if (infosetPart != null) {
                context.ContentItemRecord.Data = infosetPart.Infoset.Data;
                context.ContentItemVersionRecord.Data = infosetPart.VersionInfoset.Data;

                infosetPart.Infoset = context.ContentItemRecord.Infoset;
                infosetPart.VersionInfoset = context.ContentItemVersionRecord.Infoset;
            }
        }
 protected virtual void Created(CreateContentContext context)
 {
 }