using Elsa.Features.Services; using Microsoft.Extensions.DependencyInjection; namespace Elsa.Features.Abstractions; /// /// Base type for classes that represent a feature. /// public abstract class FeatureBase : IFeature { /// /// Constructor. /// protected FeatureBase(IModule module) { Module = module; } /// /// The module this feature is a part of. /// public IModule Module { get; } /// /// A reference to the to which services can be added. /// public IServiceCollection Services => Module.Services; /// /// Override this method to configure your feature. /// public virtual void Configure() { } /// /// Override this method to register any hosted services provided by your feature. /// public virtual void ConfigureHostedServices() { } /// /// Override this to register services with . /// public virtual void Apply() { } }