2020-05-27 18:29:36 +02:00
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
|
using System.Collections.Generic;
|
2020-05-27 16:03:38 +02:00
|
|
|
using zero.Core.Assemblies;
|
|
|
|
|
|
|
|
|
|
namespace zero.Core.Options
|
|
|
|
|
{
|
|
|
|
|
public class ZeroStartupOptions : IZeroStartupOptions
|
|
|
|
|
{
|
|
|
|
|
public IList<IAssemblyDiscoveryRule> AssemblyDiscoveryRules { get; private set; } = new List<IAssemblyDiscoveryRule>();
|
2020-05-27 18:29:36 +02:00
|
|
|
|
|
|
|
|
public IMvcBuilder Mvc { get; private set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public ZeroStartupOptions(IMvcBuilder mvc)
|
|
|
|
|
{
|
|
|
|
|
Mvc = mvc;
|
|
|
|
|
}
|
2020-05-27 16:03:38 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public interface IZeroStartupOptions
|
|
|
|
|
{
|
|
|
|
|
IList<IAssemblyDiscoveryRule> AssemblyDiscoveryRules { get; }
|
2020-05-27 18:29:36 +02:00
|
|
|
|
|
|
|
|
IMvcBuilder Mvc { get; }
|
2020-05-27 16:03:38 +02:00
|
|
|
}
|
|
|
|
|
}
|