4 instantiations of MutablePoco
Microsoft.Extensions.Caching.Hybrid.Tests (4)
SizeTests.cs (4)
124
var actual = await cache.GetOrCreateAsync<MutablePoco>(key!, ct => new(new
MutablePoco
{ Value = expected }));
130
actual = await cache.GetOrCreateAsync<MutablePoco>(key!, ct => new(new
MutablePoco
{ Value = Guid.NewGuid().ToString() }));
171
return new(new
MutablePoco
{ Value = value });
297
return new
MutablePoco
{ Value = value };
10 references to MutablePoco
Microsoft.Extensions.Caching.Hybrid.Tests (10)
SizeTests.cs (10)
124
var
actual = await cache.GetOrCreateAsync<
MutablePoco
>(key!, ct => new(new MutablePoco { Value = expected }));
130
actual = await cache.GetOrCreateAsync<
MutablePoco
>(key!, ct => new(new MutablePoco { Value = Guid.NewGuid().ToString() }));
157
var serializer = new
MutablePoco
.Serializer();
168
Func<CancellationToken, ValueTask<
MutablePoco
>> func = _ =>
180
var
first = await cache.GetOrCreateAsync("key", func);
181
var
second = await cache.GetOrCreateAsync("key", func);
280
public sealed class Serializer : IHybridCacheSerializer<
MutablePoco
>
288
public
MutablePoco
Deserialize(ReadOnlySequence<byte> source)
300
public void Serialize(
MutablePoco
value, IBufferWriter<byte> target)