1
0
mirror of synced 2024-11-25 04:03:09 +01: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 d2581bbafb
commit 961a659d0a
2 changed files with 7 additions and 1 deletions

View File

@ -174,7 +174,7 @@ namespace Tapeti
public TapetiConfig RegisterAllControllers() 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() public IPublisher GetPublisher()
{ {
return new TapetiPublisher(() => worker.Value); return new TapetiPublisher(() => worker.Value);