2026-05-26 22:14:28 +00:00
|
|
|
using ConsoleLogStreaming.Core.Options;
|
2026-05-18 00:16:46 +00:00
|
|
|
using Elsa.Diagnostics.ConsoleLogs.Extensions;
|
|
|
|
|
using Elsa.Extensions;
|
|
|
|
|
using Elsa.Features.Abstractions;
|
|
|
|
|
using Elsa.Features.Services;
|
|
|
|
|
|
|
|
|
|
namespace Elsa.Diagnostics.ConsoleLogs.Features;
|
|
|
|
|
|
|
|
|
|
public class ConsoleLogsFeature(IModule module) : FeatureBase(module)
|
|
|
|
|
{
|
2026-05-26 22:14:28 +00:00
|
|
|
public Action<ConsoleLogOptions>? ConfigureOptions { get; set; }
|
2026-05-18 00:16:46 +00:00
|
|
|
|
|
|
|
|
public override void Configure()
|
|
|
|
|
{
|
|
|
|
|
Module.AddFastEndpointsAssembly<ConsoleLogsFeature>();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void Apply()
|
|
|
|
|
{
|
|
|
|
|
Services.AddConsoleLogsServices(ConfigureOptions);
|
|
|
|
|
Module.AddFastEndpointsFromModule();
|
|
|
|
|
}
|
|
|
|
|
}
|