It is some kind of error, Ace.
Monday, May 11, 2020
Sunday, May 10, 2020
more random from Dungeons and Dragons
The gunk at QMap.pub uses QAnon which have only existed since 2017. Q notifications tell you, the listener, of new QAnon. Vivaldi allows for some interesting combos. It seems right-click, right is back and right-click, left is forward. Migraine headaches, outside of ANY sickness, fled into me last week. Yesterday was the first day without. I think in working from home and having May come there was just too much sunlight. Anyhow, I was offered some blue blocker sunglasses. What is NOT communicated (heavily) is that I just blocked off the window in my bedroom. The girl running the game says that war fog allows her to project one screen and have the rest of the players see the one screen redacted, on a different display.
Friday, May 8, 2020
a bit more on IMemoryCache
Remove an id:
_memoryCache.Remove((object) id);
Fish out a specific type:
var authItems = _memoryCache.Get<AuthorizationCacheItem>(foo);
get IMemoryCache to work with Autofac
In the setup...
builder.RegisterType<MemoryCache>().As<IMemoryCache>().SingleInstance();
At a Controller...
private readonly IMemoryCache _memoryCache;
public ServiceController(IMemoryCache memoryCache)
{
_memoryCache = memoryCache;
In an action...
var cacheEntry = _memoryCache.GetOrCreate("foo", entry =>
{
entry.Value = (object)"bar";
return Task.FromResult((string) entry.Value);
});
Elsewhere, in a different action...
object cacheEntry = _memoryCache.Get("foo");
Secret Manager Tool
It is the stuff which manages secrets.json per ASP.NET Core 2 and Angular 5 by Valerio De Sanctis.