New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use ShellSettings.RequestUrlHosts that uses static separators #13021
Conversation
@@ -131,7 +132,13 @@ public void WhenHostSingletonAndScoped_GetServices_Returns_CorrectImplementation | |||
Assert.IsType<HostScopedOfTheSameTypeAsSingleton>(services.ElementAt(1)); | |||
} | |||
|
|||
private ShellBlueprint CreateBlueprint() | |||
private static readonly ShellSettings _uninitializedDefaultShell = new() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we move it to fields area at the top
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay will do
src/OrchardCore.Modules/OrchardCore.Tenants/Services/TenantValidator.cs
Outdated
Show resolved
Hide resolved
@@ -588,7 +588,8 @@ private static X509Certificate2 GenerateCertificate(X509KeyUsageFlags type, RSA | |||
|
|||
X500DistinguishedName GetSubjectName() | |||
{ | |||
try { return new X500DistinguishedName("CN=" + (settings.RequestUrlHost ?? "localhost")); } | |||
var host = settings.RequestUrlHosts.FirstOrDefault(host => host != "localhost"); | |||
try { return new X500DistinguishedName("CN=" + (host ?? "localhost")); } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you format try .. cache block in your way
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay
…tors # Conflicts: # src/OrchardCore.Modules/OrchardCore.Tenants/Services/TenantValidator.cs # test/OrchardCore.Tests/Shell/ShellContainerFactoryTests.cs
No description provided.