NamedCacheEntry
Details about a named delegate cache entry.
using System;
using System.Runtime.CompilerServices;
namespace Stashbox.Resolution
{
[System.Runtime.CompilerServices.NullableContext(1)]
[System.Runtime.CompilerServices.Nullable(0)]
public readonly struct NamedCacheEntry
{
public readonly object Name;
public readonly Func<IResolutionScope, IRequestContext, object> CachedDelegate;
public NamedCacheEntry(object name, Func<IResolutionScope, IRequestContext, object> cachedDelegate)
{
this = default(NamedCacheEntry);
Name = name;
CachedDelegate = cachedDelegate;
}
}
}