[Development] StorageFilter

Topics: General
May 17, 2013 at 7:37 AM
Hi,

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)
        {
            Filters.Add(StorageFilter.For(repository));
        }
My assumption is I can add anything in this collection but what is the purpose.

best regards,
Alex
Developer
May 17, 2013 at 11: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 6:48 AM
Hi,

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