Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am feasoron on github.
  • I am feasoron (https://keybase.io/feasoron) on keybase.
  • I have a public key whose fingerprint is E2D7 D697 B66F 75D5 CB06 4FFE B033 7EED A3DC 19FE

To claim this, I am signing this object:

@Feasoron
Feasoron / CacheableObject.cs
Last active August 25, 2016 20:46
Self-Caching Object
using System;
using System.Configuration;
using AutoMapper;
namespace Caching
{
// ReSharper disable DoNotCallOverridableMethodsInConstructor
// In general, calling a pure virtual from a base class can be a problem because it calls the most derived type
// which theoretically could be expecting settings from a constructor that has not been run. For the purposes of
// this class, we are using the load method to define what happens on a cache miss and *need* to call the most