Skip to content

Commit 817e842

Browse files
MemoryInformationRetriever init supports now supports external and embedded instances (#4882)
Co-authored-by: Ramon Smits <[email protected]>
1 parent 72a2edf commit 817e842

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ServiceControl.Persistence.RavenDB/MemoryInformationRetriever.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ class MemoryInformationRetriever(RavenPersisterSettings persisterSettings)
1111
// What does a connection string look like? Is it only a URI or could it contain other stuff?
1212
// The primary instance has only the concept of a connection string (vs the Audit instance having
1313
// both a ServiceUrl and a ConnectionString). If the connection string contain always only the
14-
// server URL, this code is safe, otherwise it need to be adjusted to extract the server URL.
15-
readonly HttpClient client = new() { BaseAddress = new Uri(persisterSettings.ConnectionString) };
14+
// server URL, this code is safe, otherwise it need to be adjusted to extract the server URL.
15+
readonly HttpClient client = new() { BaseAddress = new Uri(persisterSettings.ServerUrl ?? persisterSettings.ConnectionString) };
1616

1717
record ResponseDto
1818
{

0 commit comments

Comments
 (0)