Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
0d3b72f5bThis 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 Microsoft.Extensions.Logging;
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>
/// Provides settings for <see cref="IHastlayer"/> initialization.
/// </summary>
public interface IHastlayerConfiguration : ISingletonDependency
{
/// <summary>
/// Gets the action to be invoked before the <see cref="IServiceProvider"/> for Hastlayer's dependency
/// injection is built. Add single service registrations or other service collection customizations here.
/// </summary>
Action<IHastlayerConfiguration, IServiceCollection> OnServiceRegistration { get; }
/// <summary>
/// Gets the 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>
/// Gets 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>
/// Gets the location of the App_Data folder.
/// </summary>
string AppDataFolderPath { get; }
/// <summary>
/// Gets the extension points for customizing the logger.
/// </summary>
Action<ILoggingBuilder> ConfigureLogging { get; }
}
}