Ejemplo n.º 1
0
        /// <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;
        }
Ejemplo n.º 2
0
        /// <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;
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Initailizes a new instance of <see cref="CommonRepository"/> class.
 /// </summary>
 public CommonRepository(IFlickrElement xmlElement, Type intefaceType, IFlickrSettingsProvider provider) : this(xmlElement, provider)
 {
     intefaceType.UpdateEndpointNames();
 }
Ejemplo n.º 4
0
 /// <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();
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Initailizes a new instance of <see cref="CommonRepository"/> class.
 /// </summary>
 public CommonRepository(IFlickrElement xmlElement, Type intefaceType, IFlickrSettingsProvider provider)
     : this(xmlElement, provider)
 {
     intefaceType.UpdateEndpointNames();
 }
Ejemplo n.º 6
0
 /// <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();
 }
Ejemplo n.º 7
0
 public WebProvider(IFlickrElement elementProxy)
     : base(elementProxy)
 {
     this.elementProxy = elementProxy;
     flickrSettingsProvider = new ConfigurationFileFlickrSettingsProvider();
 }