зеркало из https://github.com/Azure/reddog-code.git
Added httpclient to injected services
This commit is contained in:
Родитель
2ab8f9b71a
Коммит
164202f00e
|
@ -18,6 +18,7 @@ namespace RedDog.LoyaltyService
|
|||
|
||||
public void ConfigureServices(IServiceCollection services)
|
||||
{
|
||||
services.AddHttpClient();
|
||||
services.AddControllers().AddDapr();
|
||||
}
|
||||
|
||||
|
|
|
@ -18,6 +18,7 @@ namespace RedDog.MakeLineService
|
|||
|
||||
public void ConfigureServices(IServiceCollection services)
|
||||
{
|
||||
services.AddHttpClient();
|
||||
services.AddControllers().AddDapr();
|
||||
}
|
||||
|
||||
|
|
|
@ -18,6 +18,7 @@ namespace RedDog.OrderService
|
|||
|
||||
public void ConfigureServices(IServiceCollection services)
|
||||
{
|
||||
services.AddHttpClient();
|
||||
services.AddControllers().AddDapr();
|
||||
services.AddCors(options =>
|
||||
{
|
||||
|
|
|
@ -18,6 +18,7 @@ namespace RedDog.ReceiptGenerationService
|
|||
|
||||
public void ConfigureServices(IServiceCollection services)
|
||||
{
|
||||
services.AddHttpClient();
|
||||
services.AddControllers().AddDapr();
|
||||
}
|
||||
|
||||
|
|
|
@ -19,6 +19,7 @@ namespace RedDog.VirtualWorker
|
|||
|
||||
public void ConfigureServices(IServiceCollection services)
|
||||
{
|
||||
services.AddHttpClient();
|
||||
services.AddControllers().AddDapr();
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче