var send = string.Empty; ((Action)(() => Timer.Once(4, () => { send = web.GetWithSsl(url); })))(); var sendDeserialize = JsonHelper.Deserialize<RootObject>(send);\ What did I do wrong? Essence: to perform var sendDeserialize and other actions after completing Timer.Once - sending a Get request to the site.
If I use this scheme
var send = string.Empty; Timer.Once(4, () => { send = web.GetWithSsl(url); }); var sendDeserialize = JsonHelper.Deserialize<RootObject>(send); runs BEFORE web.GetWithSsl.
GetWithSslor what's the problem? - tym32167Timer.Oncedoes? - tym32167