28 lines
658 B
C#
28 lines
658 B
C#
using EntityFrameworkCore.BootKit;
|
|
using Microsoft.Extensions.Configuration;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace Bot.Rasa.Loader
|
|
{
|
|
/// <summary>
|
|
/// Initialize data for modules
|
|
/// </summary>
|
|
public interface IHookDbInitializer
|
|
{
|
|
/// <summary>
|
|
/// value smaller is higher priority
|
|
/// </summary>
|
|
int Priority { get; }
|
|
|
|
/// <summary>
|
|
/// Load data
|
|
/// </summary>
|
|
/// <param name="config"></param>
|
|
/// <param name="dc"></param>
|
|
/// <returns></returns>
|
|
void Load(IConfiguration config, Database dc);
|
|
}
|
|
}
|