Epi Server 7


The difference between the above two snippets of code is the interface passed into GetInstance. IContentloader was designed to read-only tasks and has a much simpler interface definition.  In this case, IContentLoader is a simpler way. If you need to modify and save the page after the Get then you won't have the methods you need unless you use IContentRepository. I just tend to use IContentRepository as I haven't noticed any performance issues with it and it gives me access to more options, so I'm less likely to have to refactor later compared to using IContentLoader.

Epi Server 6