Exemple #1
0
 public JsonLoader(IResourceLogger logger)
 {
     _logger   = logger;
     _settings = new JsonSerializerSettings
     {
         ContractResolver = new ContractResolver(),
         Converters       = new List <JsonConverter>
         {
             new ResourceRefConverter(),
             new StringEnumConverter()
         },
         Binder                   = this,
         TypeNameHandling         = TypeNameHandling.Auto,
         MetadataPropertyHandling = MetadataPropertyHandling.ReadAhead,
     };
 }
Exemple #2
0
 private ResourceSystem(IResourceLogger logger)
 {
     _logger = logger;
 }