Browse Source

Add PostConfigure & PostConfigureAll method to AbpModule.

pull/2634/head
maliming 7 years ago
parent
commit
4b1b051a02
  1. 12
      framework/src/Volo.Abp.Core/Volo/Abp/Modularity/AbpModule.cs

12
framework/src/Volo.Abp.Core/Volo/Abp/Modularity/AbpModule.cs

@ -121,5 +121,17 @@ namespace Volo.Abp.Modularity
{
ServiceConfigurationContext.Services.PreConfigure(configureOptions);
}
protected void PostConfigure<TOptions>(Action<TOptions> configureOptions)
where TOptions : class
{
ServiceConfigurationContext.Services.PostConfigure(configureOptions);
}
protected void PostConfigureAll<TOptions>(Action<TOptions> configureOptions)
where TOptions : class
{
ServiceConfigurationContext.Services.PostConfigureAll(configureOptions);
}
}
}
Loading…
Cancel
Save