|
1234567891011121314151617181920212223242526272829303132 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Threading.Tasks;
- using System.IO;
- using System.Text.Json;
- using Microsoft.Identity.Client;
-
- namespace jdis_import
- {
-
- public static class JsonFileReader
- {
- public static async Task<T> ReadAsync<T>(string filePath)
- {
- using FileStream stream = File.OpenRead(filePath);
- return await JsonSerializer.DeserializeAsync<T>(stream);
- }
- }
- public class JSetting {
- public string secretv{get;set;}
- public string secretid{get;set;}
- public string objectid{get;set;}
- public string tenentid{get;set;}
- public string appid{get;set;}
-
- }
- public class Jvalues{
- public string name{get;set;}
- public string value{get;set;}
- }
- }
|