public async Task <ILeaderStatistics> Execute() { try { return(await TargetUrl .GetAsync() .ReceiveJson <LeaderStatistics>()); } catch (FlurlHttpException e) { throw e.ProcessException(); } }
public async Task <IEtcdVersion> Execute() { try { return(await TargetUrl .GetAsync() .ReceiveJson <EtcdVersion>()); } catch (FlurlHttpException e) { throw e.ProcessException(); } }
public async Task <IClusterMember> Execute() { try { return(await TargetUrl .GetAsync() .ReceiveJson <ClusterMember>()); } catch (FlurlHttpException e) { throw e.ProcessException(); } }
public async Task <IClusterMember[]> Execute() { try { var collection = await TargetUrl .GetAsync() .ReceiveJson <ClusterMemberCollection>(); return(collection.Members); } catch (FlurlHttpException e) { throw e.ProcessException(); } }