using DSharpPlus.Entities; using Emzi0767.Utilities; using Microsoft.AspNetCore.Mvc; using TomatenMusic_Api.Models; using TomatenMusic_Api.Models.EventArgs; namespace TomatenMusic_Api; public class InProcessEventBus { public event AsyncEventHandler? OnConnectRequest; public event AsyncEventHandler? OnDisconnectRequest; public event AsyncEventHandler OnPlayRequest; public void OnConnectRequestEvent(ChannelConnectArgs e) { _ = OnConnectRequest?.Invoke(this, e); } public void OnDisconnectRequestEvent(ChannelDisconnectArgs e) { _ = OnDisconnectRequest?.Invoke(this, e); } public void OnPlayRequestEvent(TrackPlayArgs e) { _ = OnPlayRequest?.Invoke(this, e); } }