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