Skip to content
typemismatch edited this page Sep 13, 2010 · 2 revisions

Using the MCProvider

To use the MultiCore provider you need to add a section to your web.config or app.config files.
First, add the config section to the “configSections” of your configuration file:

<section name="MCProvider" type="MultiCore.Amazon.Providers.MCProviderConfiguration, multicore"/>

You can then add the actual configuration section, this falls under the “configuration” section.

<MCProvider default="SDBProvider"> <providers> <add name="SDBProvider" type="MultiCore.Amazon.Providers.SDBProvider, multicore" accessKey="***yourkey***" secretKey="***yourkey***" />

If your SimpleDB domains do not already exist, you can add the “domains” attribute to the provider and specify a list of domains you want created/verified with each application load.

eg: domains = "example, example2"

You can then use the provider from any location in your code:

MCProviderManager.Provider.Select("your sdb query", "your domain");

Clone this wiki locally