public async Task <LocationInfo> GetUserLocationAsync() { var userIP = await GetUserIPAsync(); Debug.Log("My ip is: " + userIP); var locationService = new UserLocationService(userIP, _network); return(await locationService.GetLocation()); }
public UserLocationController(UserLocationService userLocationService) { _service = userLocationService ?? throw new ArgumentException(nameof(userLocationService)); }