C# Class FlickrNet.FlickrConfigurationSettings

Configuration settings for the Flickr.Net API Library.

First, register the configuration section in the configSections section:

<configSections> <section name="flickrNet" type="FlickrNet.FlickrConfigurationManager,FlickrNet"/> </configSections>

Next, include the following config section:

<flickrNet apiKey="1234567890abc" // optional secret="2134123" // optional token="234234" // optional cacheSize="1234" // optional, in bytes (defaults to 50 * 1024 * 1024 = 50MB) cacheTimeout="[d.]HH:mm:ss" // optional, defaults to 1 day (1.00:00:00) - day component is optional // e.g. 10 minutes = 00:10:00 or 1 hour = 01:00:00 or 2 days, 12 hours = 2.12:00:00 > <proxy // proxy element is optional, but if included the attributes below are mandatory as mentioned ipaddress="127.0.0.1" // mandatory port="8000" // mandatory username="username" // optional, but must have password if included password="password" // optional, see username domain="domain" // optional, used for Microsoft authenticated proxy servers /> </flickrNet>

显示文件 Open project: mono/flickr-sharp Class Usage Examples

Public Methods

Method Description
FlickrConfigurationSettings ( XmlNode configNode ) : System

Loads FlickrConfigurationSettings with the settings in the config file.

Private Methods

Method Description
ProcessProxyNode ( XmlNode proxy, XmlNode configNode ) : void

Method Details

FlickrConfigurationSettings() public method

Loads FlickrConfigurationSettings with the settings in the config file.
public FlickrConfigurationSettings ( XmlNode configNode ) : System
configNode System.Xml.XmlNode XmlNode containing the configuration settings.
return System