Exemplo n.º 1
0
 public static string Serialize <TEntity>(TEntity entity)
 {
     return(JsonConvert.SerializeObject(entity, new JsonSerializerSettings
     {
         ContractResolver = LoggingContractResolver <TEntity> .Instance()
     }));
 }
Exemplo n.º 2
0
 public static LoggingContractResolver <TEntity> Instance()
 {
     return(_instance ?? (_instance = new LoggingContractResolver <TEntity>()));
 }