Пример #1
0
 protected override void Created(CreateContentContext context, TPart instance)
 {
     if (OnCreated != null)
     {
         OnCreated(context, instance);
     }
 }
Пример #2
0
 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;
            }
        }
Пример #4
0
 protected virtual void Created(CreateContentContext context)
 {
 }