public LastFmService(LastFmRepository repository) { WebRequest.RegisterPrefix(LastFmDataAccess.BaseUri, WebRequestCreator.ClientHttp); this.repository = repository; }
/// <summary> /// The constructor /// </summary> /// <param name="searchString">The searchstring built by the <see cref="ServiceHelper" />.</param> /// <param name="repository">The repository to pass the result to.</param> /// <param name="addToRepository">The <see cref="LastFmRepository.RepositoryTypes"/> type of result.</param> public LoadLastFmXmlDataResult(string searchString, LastFmRepository repository, LastFmRepository.RepositoryTypes addToRepository) { this.searchString = searchString; this.repository = repository; this.addToRepository = addToRepository; }