I initialized Client class by passing an api key in its constructor.
var client = new Client(apikey);
Calling Client.SendAsync with a Message having a null or empty api key will return a BadRequest. If I do set the api key in the Message it works. Isn't the point of having the api key in the client to use that api key across all messages?
I'm thinking that instead of an api key per message it makes more sense to have it per Client instance. A message should focus on what it is - a message and not concern itself with the api key. What do you think?
I initialized
Clientclass by passing an api key in its constructor.var client = new Client(apikey);Calling
Client.SendAsyncwith aMessagehaving a null or empty api key will return a BadRequest. If I do set the api key in theMessageit works. Isn't the point of having the api key in the client to use that api key across all messages?I'm thinking that instead of an api key per message it makes more sense to have it per Client instance. A
messageshould focus on what it is - a message and not concern itself with the api key. What do you think?