V0.0.8 - Removed Disposable
Servus, today mostly only internal changes nothing really new or breaking, except:
- RawgClient can't longer be used with using (example down below)
- QueryType moved to Models
- More comments
- Renamed the APIKEY field to Key in ClientOptions
That's basically all for the Commit
Edited example (from last release) down below (old then new):
Getting a creator (old, with disposable):
using (RawgClient client = new(new ClientOptions("YOUR KEY FROM https://rawg.io/login?forward=developer")))
{
string creatorid = "123";
Creator cr = await client.GetCreator(creatorid);
Console.WriteLine(cr.ToString());
}
Getting a creator (new, without disposable):
RawgClient client = new(new ClientOptions("YOUR KEY FROM https://rawg.io/login?forward=developer"));
string creatorid = "123";
Creator cr = await client.GetCreator(creatorid);
Console.WriteLine(cr.ToString());
Bye.