28 writes to Path
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\ConfigurationReader.cs (1)
371Path = configSection[nameof(Path)];
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (27)
CertificatePathWatcherTests.cs (13)
33Path = absoluteFilePath ? filePath : fileName, 90Path = $"dir{i % dirCount}/file{i % fileCount}", 143Path = filePath, 185Path = filePath, 222Path = Path.Combine(dir, "test.pfx"), 248Path = filePath, 282Path = filePath, 287Path = filePath, 322Path = filePath, 357Path = filePath, 415Path = filePath, 420Path = filePath, 425Path = filePath,
SniOptionsSelectorTests.cs (14)
35Path = "Exact" 45Path = "WildcardPrefix" 55Path = "WildcardOnly" 102Path = "Long" 112Path = "Short" 148Path = "Exact" 158Path = "WildcardPrefix" 196Path = "Exact" 206Path = "WildcardPrefix" 260Path = "a" 270Path = "b" 305Path = "a" 315Path = "b" 363Path = "WildcardOnly"
17 references to Path
Microsoft.AspNetCore.Server.Kestrel.Core (11)
Internal\CertificatePathWatcher.cs (2)
115var path = Path.Combine(_contentRootDir, certificateConfig.Path); 218var path = Path.Combine(_contentRootDir, certificateConfig.Path);
Internal\Certificates\CertificateConfigLoader.cs (2)
39var certificatePath = Path.Combine(HostEnvironment.ContentRootPath, certInfo.Path!); 74return (new X509Certificate2(Path.Combine(HostEnvironment.ContentRootPath, certInfo.Path!), certInfo.Password), fullChain);
Internal\ConfigurationReader.cs (6)
371Path = configSection[nameof(Path)]; 393[MemberNotNullWhen(true, nameof(Path))] 394public bool IsFileCert => !string.IsNullOrEmpty(Path); 423Path == other.Path && 432public override int GetHashCode() => HashCode.Combine(Path, KeyPath, Password, FileHasChanged, Subject, Store, Location, AllowInvalid ?? false);
TlsConfigurationLoader.cs (1)
154certificateConfig.Path == null &&
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
SniOptionsSelectorTests.cs (1)
940CertToPathDictionary.Add(cert, certInfo.Path);
Microsoft.AspNetCore.Server.Kestrel.Tests (5)
ConfigurationReaderTests.cs (4)
62Assert.Equal("/path/cert.pfx", fileCert.Path); 90Assert.Equal("/path/cert.pfx", fileCert.Path); 202Assert.Equal("/path/cert.pfx", cert3.Path); 334Assert.Equal("/path/cert.pfx", config.Certificate.Path);
KestrelConfigurationLoaderTests.cs (1)
1401Assert.Equal(certPath, sniConfig.Certificate.Path);