using System.Reflection;
using Elsa.Features.Attributes;
using Elsa.Features.Extensions;
using Elsa.Features.Services;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
using Microsoft.Extensions.Hosting;
namespace Elsa.Features.Implementations;
///
public class Module : IModule
{
private record HostedServiceDescriptor(int Order, Type HostedServiceType);
private ISet _features = new HashSet();
private readonly ICollection _hostedServiceDescriptors = new List();
///
/// Constructor.
///
public Module(IServiceCollection services)
{
Services = services;
}
///
public IServiceCollection Services { get; }
///
public IDictionary