Hi!
Can anyone give an example of how to safely call an async method in an EPiServer scheduled job?
The following is - as far as I know - not safe:
IDummyRepository repo = new DummyRepository();
var dummies = repo.GetDummiesAsync().Result;
Hi!
Can anyone give an example of how to safely call an async method in an EPiServer scheduled job?
The following is - as far as I know - not safe:
IDummyRepository repo = new DummyRepository();
var dummies = repo.GetDummiesAsync().Result;