예제 #1
0
        public static AccessConfig FromJson(string json)
        {
            var result  = new AccessConfig();
            var options = new JsonDocumentOptions {
                AllowTrailingCommas = true
            };

            using var document = JsonDocument.Parse(json, options);
            result.RestoreFromJsonDocument(document);

            return(result);
        }
예제 #2
0
 public void Config(AccessConfig config)
 {
     _accessConfig = config;
 }
예제 #3
0
 public void Config(AccessConfig config)
 {
     Service.Config(config);
 }