/// <summary> /// Initailizes a new instance of <see cref="CommonRepository"/> class. /// </summary> public CommonRepository(IFlickrSettingsProvider provider) { this.flickrProvider = provider; var settings = provider.GetCurrentFlickrSettings(); this.apiKey = settings.ApiKey; this.sharedSecret = settings.SecretKey; }
/// <summary> /// Initailizes a new instance of <see cref="CommonRepository"/> class. /// </summary> public CommonRepository(IFlickrElement xmlElement, Type intefaceType, IFlickrSettingsProvider provider) : this(xmlElement, provider) { intefaceType.UpdateEndpointNames(); }
/// <summary> /// Initailizes a new instance of <see cref="CommonRepository"/> class. /// </summary> public CommonRepository(IFlickrElement xmlElement, IFlickrSettingsProvider authInfo) : this(authInfo) { this.xmlElement = xmlElement; typeof(IRepositoryBase).UpdateEndpointNames(); }
public WebProvider(IFlickrElement elementProxy) : base(elementProxy) { this.elementProxy = elementProxy; flickrSettingsProvider = new ConfigurationFileFlickrSettingsProvider(); }