Giter Site home page Giter Site logo

Comments (6)

wo80 avatar wo80 commented on July 29, 2024

I'm actually testing some code which moves away from the static API to something like this:

var client = new MusicBrainzClient(config);
var artists = await client.Artists.SearchAsync(name);

Using the static API, you'd have to add the properties (servername, path, port and protocol) to the static config, which I actually want to get rid of. So introducing some kind of MusicBrainz client, which holds all the configuration, would eliminate the need for static classes.

from musicbrainz.

scream4-me avatar scream4-me commented on July 29, 2024

Nice, I guess that reuse/pooling of the httpClient within the client would also be possible in that design.

from musicbrainz.

wo80 avatar wo80 commented on July 29, 2024

I've pushed my code to the develop branch. The webservice base address can be set in the constructor. Let me know if this works for you.

from musicbrainz.

scream4-me avatar scream4-me commented on July 29, 2024

I'll give it a try and let you know 👍

from musicbrainz.

scream4-me avatar scream4-me commented on July 29, 2024

I've tried the dev branch code against our MusicBrainz mirror server and it works as expected 👍

from musicbrainz.

wo80 avatar wo80 commented on July 29, 2024

Closing this one. A prerelease package 2.2.0-pre-1 is now available for testing.

from musicbrainz.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.