DelegateCacheEntry
Details about Stashbox's internal delegate cache state.
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
namespace Stashbox.Resolution
{
[System.Runtime.CompilerServices.NullableContext(1)]
[System.Runtime.CompilerServices.Nullable(0)]
public readonly struct DelegateCacheEntry
{
public readonly Type ServiceType;
[System.Runtime.CompilerServices.Nullable(new byte[] {
2,
1,
1,
1
})]
public readonly Func<IResolutionScope, IRequestContext, object> CachedDelegate;
[System.Runtime.CompilerServices.Nullable(2)]
public readonly IEnumerable<NamedCacheEntry> NamedCacheEntries;
public DelegateCacheEntry(Type serviceType, [System.Runtime.CompilerServices.Nullable(new byte[] {
2,
1,
1,
1
})] Func<IResolutionScope, IRequestContext, object> cachedDelegate, [System.Runtime.CompilerServices.Nullable(2)] IEnumerable<NamedCacheEntry> namedCacheEntries)
{
this = default(DelegateCacheEntry);
ServiceType = serviceType;
CachedDelegate = cachedDelegate;
NamedCacheEntries = namedCacheEntries;
}
}
}