Skip to content

Commit

Permalink
Merge pull request #53 from Ali-YousefiTelori/develop
Browse files Browse the repository at this point in the history
fix test caller port
  • Loading branch information
Ali-YousefiTelori committed Feb 1, 2024
2 parents d27f84b + 02a62f4 commit 3ee328c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public static async Task<IServiceProvider> StartAsync()
string authBaseUrl = config.GetSection("ServiceAddresses").GetChildren().FirstOrDefault(x=>x.GetValue<string>("Name") == "Authentication").GetValue<string>("Address");
string identityBaseUrl = config.GetSection("ServiceAddresses").GetChildren().FirstOrDefault(x=>x.GetValue<string>("Name") == "Identity").GetValue<string>("Address");
app.Services.AddSingleton(s => new HttpClient());
app.Services.AddTransient(s => new AuthenticationClient(authBaseUrl, s.GetService<HttpClient>()));
app.Services.AddTransient(s => new AuthenticationClient(identityBaseUrl, s.GetService<HttpClient>()));
app.Services.AddTransient(s => new NoParentFormItemClient(generatorBaseUrl, s.GetService<HttpClient>()));
app.Services.AddTransient(s => new EventClient(generatorBaseUrl, s.GetService<HttpClient>()));
app.Services.AddTransient(s => new ActionClient(generatorBaseUrl, s.GetService<HttpClient>()));
Expand Down

0 comments on commit 3ee328c

Please sign in to comment.