27 references to new
Microsoft.Extensions.AI.Integration.Tests (6)
ChatClientIntegrationTests.cs (5)
654
new
MemoryDistributedCache
(Options.Options.Create(new MemoryDistributedCacheOptions())));
679
new
MemoryDistributedCache
(Options.Options.Create(new MemoryDistributedCacheOptions())));
727
.UseDistributedCache(new
MemoryDistributedCache
(Options.Options.Create(new MemoryDistributedCacheOptions())))
767
.UseDistributedCache(new
MemoryDistributedCache
(Options.Options.Create(new MemoryDistributedCacheOptions())))
809
.UseDistributedCache(new
MemoryDistributedCache
(Options.Options.Create(new MemoryDistributedCacheOptions())))
EmbeddingGeneratorIntegrationTests.cs (1)
88
.UseDistributedCache(new
MemoryDistributedCache
(Options.Options.Create(new MemoryDistributedCacheOptions())))
Microsoft.Extensions.AI.OpenAI.Tests (6)
OpenAIChatClientTests.cs (2)
69
.UseDistributedCache(new
MemoryDistributedCache
(Options.Options.Create(new MemoryDistributedCacheOptions())))
94
.UseDistributedCache(new
MemoryDistributedCache
(Options.Options.Create(new MemoryDistributedCacheOptions())))
OpenAIEmbeddingGeneratorTests.cs (2)
62
.UseDistributedCache(new
MemoryDistributedCache
(Options.Options.Create(new MemoryDistributedCacheOptions())))
85
.UseDistributedCache(new
MemoryDistributedCache
(Options.Options.Create(new MemoryDistributedCacheOptions())))
OpenAIRequestPoliciesTests.cs (1)
79
.UseDistributedCache(new
MemoryDistributedCache
(Options.Options.Create(new MemoryDistributedCacheOptions())))
OpenAIResponseClientTests.cs (1)
71
.UseDistributedCache(new
MemoryDistributedCache
(Options.Options.Create(new MemoryDistributedCacheOptions())))
Microsoft.Extensions.Caching.Hybrid.Tests (15)
BufferReleaseTests.cs (1)
88
:
base
(options)
ExpirationTests.cs (1)
23
var l2 = new LoggingCache(log, new
MemoryDistributedCache
(Options.Create(new MemoryDistributedCacheOptions { Clock = clock })));
FactoryOptionsTests.cs (4)
33
var captured = new CapturingCache(new
MemoryDistributedCache
(Options.Create(new MemoryDistributedCacheOptions())));
138
var captured = new CapturingCache(new
MemoryDistributedCache
(Options.Create(new MemoryDistributedCacheOptions())));
163
var l2 = new LoggingCache(log, new
MemoryDistributedCache
(Options.Create(new MemoryDistributedCacheOptions { Clock = clock })));
271
var sharedL2 = new
MemoryDistributedCache
(Options.Create(new MemoryDistributedCacheOptions()));
L2Tests.cs (2)
39
var localCache = new
MemoryDistributedCache
(localCacheOptions);
162
var shared = new
MemoryDistributedCache
(new Options<MemoryDistributedCacheOptions>(new()));
LocalInvalidationTests.cs (1)
59
MemoryDistributedCache mdc =
new
(Options.Create(options));
PayloadTests.cs (4)
111
var backend = new
MemoryDistributedCache
(Options.Create(new MemoryDistributedCacheOptions()));
434
var localCache = new
MemoryDistributedCache
(Options.Create(new MemoryDistributedCacheOptions()));
461
var localCache = new
MemoryDistributedCache
(Options.Create(new MemoryDistributedCacheOptions()));
500
localCache = new
MemoryDistributedCache
(Options.Create(new MemoryDistributedCacheOptions()));
ServiceConstructionTests.cs (2)
638
:
base
(options)
651
:
base
(options)