mirror of https://github.com/abpframework/abp.git
2 changed files with 16 additions and 3 deletions
@ -1,8 +1,13 @@ |
|||||
using Volo.Abp.Modularity; |
using Microsoft.Extensions.DependencyInjection; |
||||
|
using Volo.Abp.Modularity; |
||||
|
|
||||
namespace Volo.Abp.Dapr; |
namespace Volo.Abp.Dapr; |
||||
|
|
||||
public class AbpDaprModule : AbpModule |
public class AbpDaprModule : AbpModule |
||||
{ |
{ |
||||
|
public override void ConfigureServices(ServiceConfigurationContext context) |
||||
} |
{ |
||||
|
var configuration = context.Services.GetConfiguration(); |
||||
|
Configure<AbpDaprOptions>(configuration.GetSection("Dapr")); |
||||
|
} |
||||
|
} |
||||
|
|||||
@ -0,0 +1,8 @@ |
|||||
|
namespace Volo.Abp.Dapr; |
||||
|
|
||||
|
public class AbpDaprOptions |
||||
|
{ |
||||
|
public string HttpEndpoint { get; set; } |
||||
|
|
||||
|
public string GrpcEndpoint { get; set; } |
||||
|
} |
||||
Loading…
Reference in new issue