1
0
mirror of synced 2024-11-16 06:43:51 +00:00

Changed default for RegisterAllControllers to GetEntryAssembly

Added Sync version of Subscribe
This commit is contained in:
Mark van Renswoude 2017-02-11 21:32:03 +01:00
parent 9581bd49db
commit 9578a3efaa
2 changed files with 7 additions and 1 deletions

View File

@ -174,7 +174,7 @@ namespace Tapeti
public TapetiConfig RegisterAllControllers()
{
return RegisterAllControllers(Assembly.GetCallingAssembly());
return RegisterAllControllers(Assembly.GetEntryAssembly());
}

View File

@ -34,6 +34,12 @@ namespace Tapeti
}
public ISubscriber SubscribeSync()
{
return Subscribe().Result;
}
public IPublisher GetPublisher()
{
return new TapetiPublisher(() => worker.Value);