public void FromJson(string headers, DateTimeOffset layoutRetrievedTime) { try { if (!string.IsNullOrEmpty(headers)) { try { ResolveMaxAge(headers, layoutRetrievedTime); } catch (Exception) { ValidTill = DateTimeOffset.MaxValue; } } else { ValidTill = DateTimeOffset.MaxValue; } } catch (Exception ex) { Logger.Error("Layout.FromJson(): Failed to parse: " + ex, ex); } }