2022-12-07 14:05:11 +01:00
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
|
|
2026-04-07 14:23:29 +02:00
|
|
|
namespace Finch.Configuration;
|
2022-12-07 14:05:11 +01:00
|
|
|
|
2026-04-07 14:23:29 +02:00
|
|
|
public class FinchStartupOptions : IFinchStartupOptions
|
2022-12-07 14:05:11 +01:00
|
|
|
{
|
|
|
|
|
public IList<IAssemblyDiscoveryRule> AssemblyDiscoveryRules { get; private set; } = new List<IAssemblyDiscoveryRule>();
|
|
|
|
|
|
|
|
|
|
public IMvcBuilder Mvc { get; private set; }
|
|
|
|
|
|
|
|
|
|
|
2026-04-07 14:23:29 +02:00
|
|
|
public FinchStartupOptions(IMvcBuilder mvc)
|
2022-12-07 14:05:11 +01:00
|
|
|
{
|
|
|
|
|
Mvc = mvc;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-07 14:23:29 +02:00
|
|
|
public interface IFinchStartupOptions
|
2022-12-07 14:05:11 +01:00
|
|
|
{
|
|
|
|
|
IList<IAssemblyDiscoveryRule> AssemblyDiscoveryRules { get; }
|
|
|
|
|
|
|
|
|
|
IMvcBuilder Mvc { get; }
|
|
|
|
|
}
|