public FieldStorageEventStorage(
     IFieldStorage concreteStorage,
     ContentPartFieldDefinition contentPartFieldDefinition,
     ContentPart contentPart,
     IEnumerable <IFieldStorageEvents> events)
 {
     _concreteStorage            = concreteStorage;
     _contentPartFieldDefinition = contentPartFieldDefinition;
     _contentPart = contentPart;
     _events      = events;
 }
        public override void Init()
        {
            base.Init();

            _fieldIndexService = _container.Resolve <IFieldIndexService>();
            _contentManager    = _container.Resolve <IContentManager>();
            _provider          = _container.Resolve <IFieldStorageProvider>();
            _events            = _container.Resolve <IEnumerable <IFieldStorageEvents> >();

            _part = CreateContentItemPart();
            var partFieldDefinition = _part.PartDefinition.Fields.Single();
            var storage             = _provider.BindStorage(_part, partFieldDefinition);

            _storage = new FieldStorageEventStorage(storage, partFieldDefinition, _part, _events);
        }
Example #3
0
 public DescribeMembersContext(Action <string, Type, LocalizedString, LocalizedString> processMember, IFieldStorage storage, Action <IEnumerable> apply)
 {
     _processMember = processMember;
     _storage       = storage;
     _apply         = apply;
 }
Example #4
0
 public DescribeMembersContext(IFieldStorage storage, Action <IEnumerable> apply)
     : this(null, storage, apply)
 {
 }
 public static T Get <T>(this IFieldStorage storage)
 {
     return(storage.Get <T>(null));
 }
 public static void Set <T>(this IFieldStorage storage, T value)
 {
     storage.Set(null, value);
 }
Example #7
0
 public FieldPtr(IFieldStorage storage, IField field)
 {
     _storage = storage;
     _field   = field;
 }