Use of Async and Await
From Legacy code: .... var client = new WebClient(); var content = client.DownloadString($"http://localhost:62323/api/stocks /{Ticker.Text}"); var data = JsonConvert.DeserializeObject <IEnumberable<StrockPrice>>(content); Stocks.ItemSource = data; ... converted using Async and Await: //same thing we are going to achieve using httpclient ... try { using(var client = new HttpClient()) { var result = await client. GetAsync($"http://localhost:2323/api/stocks /{Ticker.Text}") var content = await result.content.ReadAsStringAsync(); var data = JsonConvert.DeserializeObject <IEnumberable<StockPrice>>(content); Stocks.ItemSource = data } } catch(Exception ex) { } ...

IBULHSGFIN all 3 target hit buy side.
ReplyDeleteBharatFin all 3 target buy side.
BPCL no entry
ReplyDeleteCEATLTD: tg1 and tg2 hit buy side.
DMART :all 3 target got hit till 9:24am.
GODREJCP: first stop loss got hit. again entery and tg2 got hit.
HEROMOTOCO: sell side TG2 got hit.
IBULHSGFIN all 3 target hit buy side.
BharatFin all 3 target buy side.