Example #1
0
        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>());
        }
Example #2
0
        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;
        }
Example #3
0
 public TokenTestService(IXWebRepo <TokenResult> tokenResult)
 {
     _tokenResult = tokenResult;
     _tokenResult.SetEndPoint("https://jwtparse.azurewebsites.net/api/JWTWithRsaValidator?code=r3gqblabmyfju0c6zbhknwyiimhdrdn1yld7");
 }