Пример #1
0
 /// <summary>
 /// This endpoint provides a listing of the Consul servers present in a specific network area.
 /// </summary>
 /// <param name="listSpecificNetworkAreaParmeter">List Specific Network Area Parmeter</param>
 /// <returns></returns>
 public async Task <(bool result, ListNetworkAreaMembersResult[] listNetworkAreaMembersResults)> ListNetworkAreaMembers(NetworkAreaParmeter listSpecificNetworkAreaParmeter)
 {
     return(await Put <NetworkAreaParmeter, ListNetworkAreaMembersResult[]>(listSpecificNetworkAreaParmeter, "/operator/area/members"));
 }
Пример #2
0
 /// <summary>
 /// This endpoint deletes a specific network area.
 /// </summary>
 /// <param name="listSpecificNetworkAreaParmeter">Delete Network Area Parmeter</param>
 /// <returns></returns>
 public async Task <(bool result, string backString)> DeleteNetworkArea(NetworkAreaParmeter listSpecificNetworkAreaParmeter)
 {
     return(await Delete <NetworkAreaParmeter, string>(listSpecificNetworkAreaParmeter, "/operator/area"));
 }
Пример #3
0
 /// <summary>
 /// This endpoint attempts to join the given Consul servers into a specific network area.
 /// </summary>
 /// <param name="listSpecificNetworkAreaParmeter">List Specific Network Area Parmeter</param>
 /// <returns></returns>
 public async Task <(bool result, JoinNetworkAreaResult[] joinNetworkAreaResults)> JoinNetworkArea(NetworkAreaParmeter listSpecificNetworkAreaParmeter)
 {
     return(await Put <NetworkAreaParmeter, JoinNetworkAreaResult[]>(listSpecificNetworkAreaParmeter, "	/operator/area/join"));
 }
Пример #4
0
 /// <summary>
 /// This endpoint lists a specific network area.
 /// </summary>
 /// <param name="List Specific Network Area Parmeter">ListSpecificNetworkAreaParmeter</param>
 /// <returns></returns>
 public async Task <ListNetworkAreasResult[]> ListSpecificNetworkArea(NetworkAreaParmeter listSpecificNetworkAreaParmeter)
 {
     return(await Get <ListNetworkAreasResult[], NetworkAreaParmeter>("/operator/area", listSpecificNetworkAreaParmeter));
 }