Changed default for RegisterAllControllers to GetEntryAssembly
Added Sync version of Subscribe
This commit is contained in:
parent
d2581bbafb
commit
961a659d0a
@ -174,7 +174,7 @@ namespace Tapeti
|
||||
|
||||
public TapetiConfig RegisterAllControllers()
|
||||
{
|
||||
return RegisterAllControllers(Assembly.GetCallingAssembly());
|
||||
return RegisterAllControllers(Assembly.GetEntryAssembly());
|
||||
}
|
||||
|
||||
|
||||
|
@ -34,6 +34,12 @@ namespace Tapeti
|
||||
}
|
||||
|
||||
|
||||
public ISubscriber SubscribeSync()
|
||||
{
|
||||
return Subscribe().Result;
|
||||
}
|
||||
|
||||
|
||||
public IPublisher GetPublisher()
|
||||
{
|
||||
return new TapetiPublisher(() => worker.Value);
|
||||
|
Loading…
Reference in New Issue
Block a user