示例#1
0
 public static async Task <string> execute()
 {
     return(await
            Safely.execute(async() =>
                           await RestService
                           .For <IEmptyRequest>(HttpClientProvider.new_instance)
                           .execute(), "EmptyRequest"));
 }
示例#2
0
 public static async Task <string> execute(AddShiftRequest request)
 {
     return(await
            Safely.execute(async() =>
                           await RestService
                           .For <IAddShift>(HttpClientProvider.new_instance)
                           .execute(request.title), "AddShift"));
 }