probably split this into two methods, CreateEndpoint simply tries to create the service. The other method, ValidateEndpoint checks if the valid status is present? Once the valid status is populated, we can call the r.SetHostname and r.SetPort
Originally posted by @alaypatel07 in #2 (comment)
probably split this into two methods,
CreateEndpointsimply tries to create the service. The other method,ValidateEndpointchecks if the valid status is present? Once the valid status is populated, we can call ther.SetHostnameandr.SetPortOriginally posted by @alaypatel07 in #2 (comment)