protected T Deserialise <T>(string entity) where T : class { try { if (OverriseSerialiser != null) { return(OverriseSerialiser.Deserialise <T>(entity)); } var e = _entitySerialiser.Deserialise <T>(entity); return(e); } catch (Exception ex) { Debug.WriteLine("Des problem: " + ex.Message); } return(null); }
protected T Deserialise <T>(string entity) where T : class { try { if (OverriseSerialiser != null) { return(OverriseSerialiser.Deserialise <T>(entity)); } var e = _entitySerialiser.Deserialise <T>(entity); return(e); } catch (Exception ex) { Debug.WriteLine("Des problem: " + ex.Message); ContainerHost.Container.Resolve <ILogService>().TrackException(ex, new Dictionary <string, string> { { "Entity", entity } }); } return(null); }