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());
    }
Beispiel #2
0
 public UserLocationController(UserLocationService userLocationService)
 {
     _service = userLocationService ?? throw new ArgumentException(nameof(userLocationService));
 }