/// <summary> /// Perform an action if we have a particular custom context /// </summary> /// <typeparam name="TContext"></typeparam> /// <param name="action"></param> public void With <TContext>(Action <TContext> action) { if (CustomContext.ContainsKey(typeof(TContext))) { action((TContext)CustomContext[typeof(TContext)]); } // if (Stuff.HasThing(typeof(TContext))) { // action(Stuff.GetThing(typeof(TContext))); // } }