Beispiel #1
0
 public T Get <T>(string path) where T : class
 {
     return(AsyncHelper.ExecuteSync(() => this.GetAsync <T>(path, CancellationToken.None)));
 }
Beispiel #2
0
 public static TResult ExecuteSync <TResult>(Func <Task <TResult> > func)
 {
     return(AsyncHelper.ExecuteSync(func));
 }
Beispiel #3
0
 public void ExecuteSync(Func <Task> func)
 {
     AsyncHelper.ExecuteSync(func);
 }
Beispiel #4
0
 public static void ExecuteSync(Func <Task> func, bool continueOnCapturedContext)
 {
     AsyncHelper.ExecuteSync(func);
 }