[Development] StorageFilter

Topics: General
May 17, 2013 at 6:37 AM

I begin to create my first module.
I add the folder Handlers with PoiHandler.
I don't understand how I can pass StorageFiler.For to the method Add.
Filters.add wait a IContentFilter item but StorageFilter.For don't return this kind of object.
So maybe I miss something.
        public PoiHandler(IRepository<PoiRecord> repository)
My assumption is I can add anything in this collection but what is the purpose.

best regards,
May 17, 2013 at 10:29 PM
StorageFilter.For returns a StorageFilter, which ultimately implements IContentFilter.
So you can add anything that implements IContentFilter. Have a look at where the Filters collection is being used. You'll find its purpose.
May 21, 2013 at 5:48 AM

I understand, otherwize I need to debug in runtime to define what is the correct object in IContentFilter.
Thank you.