Exemple #1
0
 internal JsonSerializator(JsonContext context, IJsonMapper <T> mapper, IRuntimeMapperBuilder builder)
 {
     Context = context;
     Mapper  = mapper;
     Builder = builder;
 }
Exemple #2
0
 internal static MapperWrapper <T> Unregister(JsonContext context)
 {
     return(Cache.TryRemove(context._id, out MapperWrapper <T> wrapper) ? wrapper : null);
 }
Exemple #3
0
 internal MapperWrapper(JsonContext context, IJsonMapper <T> mapper,
                        IRuntimeMapperBuilder builder = null)
 {
     JsonSerializator = new JsonSerializator <T>(context, mapper, builder);
 }
Exemple #4
0
 internal static MapperWrapper <T> GetJsonSerializator(JsonContext context)
 {
     return(Cache.TryGetValue(context._id, out MapperWrapper <T> wrapper) ? wrapper : null);
 }
Exemple #5
0
 internal BuilderWrapper(JsonContext context, T builder)
 {
     _context = context;
     _builder = builder;
 }