Fix routing keys
This commit is contained in:
parent
52d4b47d77
commit
4e43da8362
9
src/Nocr.TelegramListener.AppServices/Constants.cs
Normal file
9
src/Nocr.TelegramListener.AppServices/Constants.cs
Normal file
@ -0,0 +1,9 @@
|
||||
namespace Nocr.TelegramListener.AppServices;
|
||||
|
||||
public static class Constants
|
||||
{
|
||||
public static class RoutingKeys
|
||||
{
|
||||
public const string Subscriptions = "nocr.text.matcher.subscriptions";
|
||||
}
|
||||
}
|
||||
@ -50,6 +50,6 @@ public class Startup
|
||||
{
|
||||
var bus = app.ApplicationServices.GetRequiredService<IBus>();
|
||||
// TODO:
|
||||
bus.Advanced.Topics.Subscribe("nocr.text.matcher.matches").GetAwaiter().GetResult();
|
||||
bus.Advanced.Topics.Subscribe(Constants.RoutingKeys.Subscriptions).GetAwaiter().GetResult();
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user