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