25 references to MemoryDistributedCacheOptions
Microsoft.AspNetCore.Mvc.TagHelpers.Test (4)
DistributedCacheTagHelperTest.cs (4)
354var storage = GetStorage(Options.Create(new MemoryDistributedCacheOptions { Clock = clock.Object })); 416var storage = GetStorage(Options.Create(new MemoryDistributedCacheOptions { Clock = clock.Object })); 478var storage = GetStorage(Options.Create(new MemoryDistributedCacheOptions { Clock = clock.Object })); 776return new DistributedCacheTagHelperStorage(new MemoryDistributedCache(options ?? Options.Create(new MemoryDistributedCacheOptions())));
Microsoft.AspNetCore.Session.Tests (1)
SessionTests.cs (1)
1158_cache = new MemoryDistributedCache(Options.Create(new MemoryDistributedCacheOptions()));
Microsoft.Extensions.AI.AzureAIInference.Tests (3)
AzureAIInferenceChatClientTests.cs (1)
77.UseDistributedCache(new MemoryDistributedCache(Options.Options.Create(new MemoryDistributedCacheOptions())))
AzureAIInferenceEmbeddingGeneratorTests.cs (1)
58.UseDistributedCache(new MemoryDistributedCache(Options.Options.Create(new MemoryDistributedCacheOptions())))
AzureAIInferenceImageEmbeddingGeneratorTests.cs (1)
58.UseDistributedCache(new MemoryDistributedCache(Options.Options.Create(new MemoryDistributedCacheOptions())))
Microsoft.Extensions.AI.Integration.Tests (6)
ChatClientIntegrationTests.cs (5)
663new MemoryDistributedCache(Options.Options.Create(new MemoryDistributedCacheOptions()))); 688new MemoryDistributedCache(Options.Options.Create(new MemoryDistributedCacheOptions()))); 736.UseDistributedCache(new MemoryDistributedCache(Options.Options.Create(new MemoryDistributedCacheOptions()))) 776.UseDistributedCache(new MemoryDistributedCache(Options.Options.Create(new MemoryDistributedCacheOptions()))) 818.UseDistributedCache(new MemoryDistributedCache(Options.Options.Create(new MemoryDistributedCacheOptions())))
EmbeddingGeneratorIntegrationTests.cs (1)
89.UseDistributedCache(new MemoryDistributedCache(Options.Options.Create(new MemoryDistributedCacheOptions())))
Microsoft.Extensions.AI.OpenAI.Tests (6)
OpenAIAssistantChatClientTests.cs (1)
61.UseDistributedCache(new MemoryDistributedCache(Options.Options.Create(new MemoryDistributedCacheOptions())))
OpenAIChatClientTests.cs (2)
67.UseDistributedCache(new MemoryDistributedCache(Options.Options.Create(new MemoryDistributedCacheOptions()))) 92.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())))
OpenAIResponseClientTests.cs (1)
60.UseDistributedCache(new MemoryDistributedCache(Options.Options.Create(new MemoryDistributedCacheOptions())))
Microsoft.Extensions.Caching.Hybrid.Tests (5)
ExpirationTests.cs (1)
23var l2 = new LoggingCache(log, new MemoryDistributedCache(Options.Create(new MemoryDistributedCacheOptions { Clock = clock })));
L2Tests.cs (1)
38var localCacheOptions = new Options<MemoryDistributedCacheOptions>(new());
LocalInvalidationTests.cs (1)
58MemoryDistributedCacheOptions options = new();
PayloadTests.cs (2)
278var localCache = new MemoryDistributedCache(Options.Create(new MemoryDistributedCacheOptions())); 305var localCache = new MemoryDistributedCache(Options.Create(new MemoryDistributedCacheOptions()));