public async Task <XResult <bool> > SendDump(DumpWireEntity entity) { var dumpUrl = _discoveryService.LocalUrl; _localNetworkRepo.SetEndPoint(dumpUrl); var result = await _localNetworkRepo.Post(entity); Debug.WriteLine($"Dump result: {result?.Object?.Code}"); return(result.Copy <bool>()); }
public async Task PerformRealDiscovery() { await PerformDiscovery(); return; _settingsRepo.SetEndPoint("http://testapiforlogics.azurewebsites.net/ip.txt"); var result = await _settingsRepo.GetResult(); var s = result.Result; LocalUrl = _ser.Deserialise <IPSettings>(s)?.IPAddress; }
public TokenTestService(IXWebRepo <TokenResult> tokenResult) { _tokenResult = tokenResult; _tokenResult.SetEndPoint("https://jwtparse.azurewebsites.net/api/JWTWithRsaValidator?code=r3gqblabmyfju0c6zbhknwyiimhdrdn1yld7"); }