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