27 writes to XmlRepository
KeyManagementSimulator (1)
Program.cs (1)
350XmlRepository = repository,
Microsoft.AspNetCore.DataProtection (3)
DataProtectionBuilderExtensions.cs (2)
178options.XmlRepository = new FileSystemXmlRepository(directory, loggerFactory); 202options.XmlRepository = new RegistryXmlRepository(registryKey, loggerFactory);
Internal\KeyManagementOptionsPostSetup.cs (1)
79options.XmlRepository = new ReadOnlyFileSystemXmlRepository(keyDirectory, _loggerFactory!);
Microsoft.AspNetCore.DataProtection.EntityFrameworkCore (1)
EntityFrameworkCoreDataProtectionExtensions.cs (1)
32options.XmlRepository = new EntityFrameworkCoreXmlRepository<TContext>(services, loggerFactory);
Microsoft.AspNetCore.DataProtection.StackExchangeRedis (1)
RedisDataProtectionBuilderExtensions.cs (1)
63options.XmlRepository = new RedisXmlRepository(databaseFactory, key);
Microsoft.AspNetCore.DataProtection.Tests (15)
Internal\KeyManagementOptionsPostSetupTest.cs (1)
89XmlRepository = new FileSystemXmlRepository(xmlDir, NullLoggerFactory.Instance),
KeyManagement\XmlKeyManagerTests.cs (14)
37XmlRepository = null, 61XmlRepository = null, 104XmlRepository = mockXmlRepository.Object, 202XmlRepository = mockXmlRepository.Object, 308XmlRepository = new Mock<IXmlRepository>().Object, 603XmlRepository = mockXmlRepository.Object, 630XmlRepository = mockXmlRepository.Object, 680XmlRepository = mockXmlRepository.Object, 735XmlRepository = new Mock<IXmlRepository>().Object, 801XmlRepository = new EphemeralXmlRepository(NullLoggerFactory.Instance), // A realistic repository is fine 901XmlRepository = respository.Object, 940XmlRepository = repository, 987XmlRepository = XmlRepositoryWithDeletion.Instance, 994XmlRepository = XmlRepositoryWithoutDeletion.Instance,
Microsoft.AspNetCore.Http.Connections.Tests (2)
HttpConnectionDispatcherTests.cs (2)
3514options.XmlRepository = new EphemeralXmlRepository(); 3664options.XmlRepository = new EphemeralXmlRepository();
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (2)
Startup.cs (1)
71options.XmlRepository = new EphemeralXmlRepository();
VersionStartup.cs (1)
34options.XmlRepository = new EphemeralXmlRepository();
Microsoft.AspNetCore.SignalR.Tests (1)
Startup.cs (1)
78options.XmlRepository = new EphemeralXmlRepository();
SignalR.Client.FunctionalTestApp (1)
Startup.cs (1)
105options.XmlRepository = new EphemeralXmlRepository();
6 references to XmlRepository
Microsoft.AspNetCore.DataProtection (3)
Internal\KeyManagementOptionsPostSetup.cs (2)
71if (options is { XmlRepository: null, XmlEncryptor: null }) 81else if (options.XmlRepository is not null)
KeyManagement\XmlKeyManager.cs (1)
98var keyRepository = keyManagementOptions.Value.XmlRepository;
Microsoft.AspNetCore.DataProtection.Tests (3)
Internal\KeyManagementOptionsPostSetupTest.cs (2)
161var repository = options.XmlRepository as FileSystemXmlRepository; 180var repository = options.XmlRepository;
ServiceCollectionTests.cs (1)
93var repository = options.XmlRepository as FileSystemXmlRepository;