Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
c63a352d8This file is pinned to the selected release. Download the original to open it in your design tool.
using Hast.Common.Interfaces;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Reflection;
namespace Hast.Layer
{
/// <summary>
/// The usage flavor of Hastlayer for different scenarios.
/// </summary>
public enum HastlayerFlavor
{
/// <summary>
/// Flavor for the developers of Hastlayer itself. It includes the full source code.
/// </summary>
Developer,
/// <summary>
/// Flavor for end-users of Hastlayer who run Hastlayer in a client mode, accessing *Hast.Core* as a remote service.
/// </summary>
Client,
/// <summary>
/// Flavor for testing without transformation. <see cref="NullTransformer"/> is used.
/// </summary>
Inert
}
public interface IHastlayerConfiguration : ISingletonDependency
{
/// <summary>
/// Invoked before the <see cref="IServiceProvider"/> is built.
/// </summary>
Action<IHastlayerConfiguration, IServiceCollection> OnServiceRegistration { get; }
/// <summary>
/// Extensions that can provide implementations for Hastlayer services or hook into the hardware generation
/// pipeline. These should include services that implement <see cref="IDependency"/> directly or indirectly.
/// </summary>
IEnumerable<Assembly> Extensions { get; }
/// <summary>
/// The usage flavor of Hastlayer for different scenarios. Defaults to <see cref="HastlayerFlavor.Client"/> in
/// the client SDK and <see cref="HastlayerFlavor.Developer"/> otherwise.
/// </summary>
HastlayerFlavor Flavor { get; }
/// <summary>
/// The location of the App_Data folder
/// </summary>
string AppDataFolderPath { get; }
}
}