|
|
@ -1,5 +1,4 @@ |
|
|
using Microsoft.Extensions.Configuration; |
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
|
|
|
using Volo.Abp.Http.Client; |
|
|
using Volo.Abp.Http.Client; |
|
|
using Volo.Abp.Modularity; |
|
|
using Volo.Abp.Modularity; |
|
|
|
|
|
|
|
|
@ -18,10 +17,7 @@ namespace LINGYUN.Abp.Dapr.Actors |
|
|
public override void ConfigureServices(ServiceConfigurationContext context) |
|
|
public override void ConfigureServices(ServiceConfigurationContext context) |
|
|
{ |
|
|
{ |
|
|
var configuration = context.Services.GetConfiguration(); |
|
|
var configuration = context.Services.GetConfiguration(); |
|
|
Configure<AbpDaprRemoteServiceOptions>(options => |
|
|
Configure<AbpDaprRemoteServiceOptions>(configuration); |
|
|
{ |
|
|
|
|
|
configuration.Bind(options); |
|
|
|
|
|
}); |
|
|
|
|
|
context.Services.AddHttpClient(DaprHttpClient); |
|
|
context.Services.AddHttpClient(DaprHttpClient); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|