Ejemplo n.º 1
0
        public Task SaveAccountDetailsAsync(AccountDetails accountDetails)
        {
            string json = JsonSerializer.Serialize(accountDetails);

            return(_fileSystem.WriteStringAsync("account.json", json));
        }
Ejemplo n.º 2
0
        private Task SaveFSChallengeFormat(FSChallengeFormat fsChallengeFormat)
        {
            string json = JsonSerializer.Serialize(fsChallengeFormat);

            return(_fileSystem.WriteStringAsync("challenges.json", json));
        }
Ejemplo n.º 3
0
        private Task SaveFileSystemCertCollectionFormat(FileSystemCertCollectionFormat fileSystemCertCollectionFormat)
        {
            string json = JsonSerializer.Serialize(fileSystemCertCollectionFormat);

            return(_fileSystem.WriteStringAsync("certs.json", json));
        }