Example #1
0
 public async void SaveColorToServer(UserColor c)
 {
     try
     {
         var saveResult = await _colorsRepo.Post(c, "UserColors");
     }
     catch
     {
     }
 }
Example #2
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 #3
0
        public async Task <TokenResult> TestToken(string token)
        {
            var n = new TokenRequest
            {
                Token    = token,
                RsaKey   = "PFJTQUtleVZhbHVlPjxNb2R1bHVzPjNhSm1GcHhJR2EvcDhlRWVLNXg5SzZSMGVWclh2YjEyczRIRWplQ29XUStKYnFrb1VpM29jdnYxRjFLT2tOWUdVTHBUWitYajFxS3FOSXBlTWxLUTBwRFllcUpwYTRWYU14TGJtejRIbEFYNnhVZWRLdzNrM2EzL1ZkUGZSbXc3aUIrdjlXNlVCL2NJMm1Db05VZFhnM3hPVndyZnBDTFJzaU1pWkE4NENUSDVPZmNFZUVWanZzMm4rSjcvZ0JEelRVc1JWMFFqaXRVMWxKYkFBNzNGdVQ2aXhTZktTRUw3ZWhWRFdXZEFSWU1nNjFkc0R1THY5UWQrdWMvYmdjUEdpa3dWVXRwa3o0dUV1aXBwcTQ4bEpjQTFmU2VHekxER3pVbG1ESkY1MWt6V201ZndUUXovNU9MY1QrbVhLSmhzQXlMTUNNL21MS0E3UFordTFFWFVrdz09PC9Nb2R1bHVzPjxFeHBvbmVudD5BUUFCPC9FeHBvbmVudD48L1JTQUtleVZhbHVlPg==",
                Issuer   = "CentralAuthHost",
                Audience = "SomeDemoServer"
            };


            var result = await _tokenResult.Post(n);

            return(result.Object);
        }