Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DeezerSession does not have a "CreateNew()" method #92

Closed
420tech opened this issue Nov 14, 2020 · 2 comments
Closed

DeezerSession does not have a "CreateNew()" method #92

420tech opened this issue Nov 14, 2020 · 2 comments

Comments

@420tech
Copy link

420tech commented Nov 14, 2020

I was trying to follow your docs. There is no CreateNew in DeezerSession. So either a doc bug or.....

@projectgoav
Copy link
Owner

projectgoav commented Nov 16, 2020

Hi there,

The documentation here should apply to 2.X.X.X -> 4.X.X.X verisons of E.Deezer. I've marked the 5.X.X.X packages as pre-release until I have time to complete outstanding work and the accompanying documentation.

I'm assuming that you are using a 5.X.X.X package which is why you aren't seeing a CreateNew() method.

I believe you are wanting something like:

var httpHandler = new HttpClientHandler(); // Or whatever implementation you want here...
var session = new DeezerSession(httpHandler);

// .. Continue using 'session' to access Deezer API

You may find this example app I have written around the library as a helpful reference; https://github.com/projectgoav/E.ExploreDeezer

(DeezerSession is constructed in E.ExploreDeezer.Core.ServiceRegistry ctr, Line 38)

@420tech
Copy link
Author

420tech commented Nov 20, 2020

Perfect! Thank you!

@420tech 420tech closed this as completed Nov 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants