зеркало из https://github.com/Azure/reddog-code.git
Merge pull request #33 from lynn-orrell/glo-startupinjection
Added httpclient to injected services
This commit is contained in:
Коммит
235d1ab1af
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче