kRapaille / LeagueOfLegendsAPI

Portable C# Library for League of legends API
http://xeex.github.io/LeagueOfLegendsAPI
MIT License
19 stars 7 forks source link

Static initialization #21

Closed sornii closed 10 years ago

sornii commented 10 years ago

Would be nice if there were a static init. In late packages that I've downloaded, many of them have use of static variables to use. So, if you put the api key somewhere static, I don't need to initialize everytime.

kRapaille commented 10 years ago

I removed it recently because I'm not fan of "all static". Isn't it easier for you to put your LeagueAPI's instance in an static property ?

sornii commented 10 years ago

Thanks for the hint. Also, are you sure your example in README.md is correct?

edit: Idk why, but I hadnt the LeagueAPI.PCL, I've downloaded from NuGet and there's no LeagueApi class to use.

kRapaille commented 10 years ago

image

It does works for me. Here's some things that could help you :

I'll also try to be available in this JabbR room if you want to reach me easier : https://jabbr.net/#/rooms/PortableLeagueAPI

kRapaille commented 10 years ago

@Sornii Does it work now ?

kRapaille commented 10 years ago

I'm going to close this issue as I don't have news anymore. Feel free to open a new one if needed.