RE 4 (incl. new Interceptors)
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
namespace zero.Backoffice.Modules;
|
||||
|
||||
internal class SearchModule : ZeroModule
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void Register(IZeroModuleConfiguration config)
|
||||
{
|
||||
config.Services.AddOptions<SearchOptions>().Bind(config.Configuration.GetSection(SearchOptions.KEY));
|
||||
config.Services.AddScoped<IBackofficeSearchService, BackofficeSearchService>();
|
||||
}
|
||||
|
||||
|
||||
/// <inheritdoc />
|
||||
public override void Configure(IZeroOptions options)
|
||||
{
|
||||
options.For<RavenOptions>().Indexes.Add<zero_Backoffice_Search>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user