mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
21 lines
590 B
C#
21 lines
590 B
C#
using Microsoft.Extensions.Logging;
|
|
using ReactiveUI;
|
|
using Wabbajack.DTOs.Interventions;
|
|
|
|
namespace Wabbajack.Interventions;
|
|
|
|
public class InteventionHandler : IUserInterventionHandler
|
|
{
|
|
private readonly ILogger<InteventionHandler> _logger;
|
|
|
|
public InteventionHandler(ILogger<InteventionHandler> logger)
|
|
{
|
|
_logger = logger;
|
|
}
|
|
public void Raise(IUserIntervention intervention)
|
|
{
|
|
// Recast these or they won't be properly handled by the message bus
|
|
if (intervention is ManualDownload md)
|
|
MessageBus.Current.SendMessage(md);
|
|
}
|
|
} |