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

                return(collection.Members);
            }
            catch (FlurlHttpException e)
            {
                throw e.ProcessException();
            }
        }