Added a simple method for subscribing to events.
This commit is contained in:
@ -53,7 +53,7 @@ namespace TwitchChatTTS.Twitch.Redemptions
|
||||
_lock = new object();
|
||||
|
||||
var topic = _bus.GetTopic("redemptions_initiation");
|
||||
topic.Subscribe(new ServiceBusObserver(data =>
|
||||
topic.Subscribe(data =>
|
||||
{
|
||||
if (data.Value is not RedemptionInitiation init)
|
||||
return;
|
||||
@ -76,7 +76,7 @@ namespace TwitchChatTTS.Twitch.Redemptions
|
||||
Add(redemption);
|
||||
|
||||
Initialize();
|
||||
}, _logger));
|
||||
});
|
||||
}
|
||||
|
||||
public void Add(RedeemableAction action)
|
||||
|
Reference in New Issue
Block a user