File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/ServiceControl.Audit.Persistence.RavenDB Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,10 @@ namespace ServiceControl.Audit.Persistence.RavenDB;
88
99class MemoryInformationRetriever ( DatabaseConfiguration databaseConfiguration )
1010{
11- readonly HttpClient client = new ( ) { BaseAddress = new Uri ( databaseConfiguration . ServerConfiguration . ServerUrl ) } ;
11+ // TODO what does a connection string look like? Is it only a URI or could it contain other stuff?
12+ // The ?? operator is needed because ServerUrl is populated when running embedded and connection string when running in external mode.
13+ // However the tricky part is that when tests are run they behave like if it was external mode
14+ readonly HttpClient client = new ( ) { BaseAddress = new Uri ( databaseConfiguration . ServerConfiguration . ServerUrl ?? databaseConfiguration . ServerConfiguration . ConnectionString ) } ;
1215
1316 record ResponseDto
1417 {
You can’t perform that action at this time.
0 commit comments