1 instantiation of AntiforgerySerializationContext
Microsoft.AspNetCore.Antiforgery (1)
Internal\AntiforgerySerializationContextPooledObjectPolicy.cs (1)
12return new AntiforgerySerializationContext();
11 references to AntiforgerySerializationContext
Microsoft.AspNetCore.Antiforgery (11)
AntiforgeryServiceCollectionExtensions.cs (1)
39services.TryAddSingleton<ObjectPool<AntiforgerySerializationContext>>(serviceProvider =>
Internal\AntiforgerySerializationContextPooledObjectPolicy.cs (3)
8internal sealed class AntiforgerySerializationContextPooledObjectPolicy : IPooledObjectPolicy<AntiforgerySerializationContext> 10public AntiforgerySerializationContext Create() 15public bool Return(AntiforgerySerializationContext obj)
Internal\DefaultAntiforgeryTokenSerializer.cs (4)
16private readonly ObjectPool<AntiforgerySerializationContext> _pool; 20ObjectPool<AntiforgerySerializationContext> pool) 31var serializationContext = _pool.Get(); 129var serializationContext = _pool.Get();
Internal\DefaultClaimUidExtractor.cs (3)
16private readonly ObjectPool<AntiforgerySerializationContext> _pool; 18public DefaultClaimUidExtractor(ObjectPool<AntiforgerySerializationContext> pool) 124var serializationContext = _pool.Get();