Select the search type
  • Site
  • Web
Search
You are here:  Support/Forums
Support

Bring2mind Forums

Provider implementation
Last Post 07/28/2009 3:41 PM by Peter Donker. 1 Replies.
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
kingm
New Member
New Member
Posts:1


--
07/13/2009 8:38 PM

 I'm looking to change the backend store for my DMX module from the default server file system to the much larger & cheaper Amazon S3 cloud.  I noticed a post a while ago indicating this was a planned development feature, but I'd rather just do it myself if possible.

 

I was excited to see that the FileStorageProvider is just an implementation of the StorageProvider abstract class... this leads me to believe I could do what I want by creating an S3Provider that inherits from StorageProvider.  The only question I have is how to get my DMX installation to use this new provider.  Is there a config option somewhere?

 

Thanks for any help,

-Mike

Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
07/28/2009 3:41 PM
Hi Mike,

The plan is to implement this through options rather than the web.config as the latter is very sensitive to update and premissions issues. This has not been fully implemented yet. But it is simple to effectuate if you have the partial src. It -can- however be done through the web.config but this will take a bit of trial and error to get it working. The call that is important here is:

objProvider = CType(DotNetNuke.Framework.Reflection.CreateObject("dmxstorage"), StorageProvider)

This means you create a section in the web.config analogous to other provider sections called dmxstorage. The default one is:

Bring2mind.DNN.Modules.DMX.Services.Storage.FileStorageProvider, BRING2MIND.DNN.MODULES.DMX.FILESTORAGEPROVIDER

Peter
You are not authorized to post a reply.