Changed default for RegisterAllControllers to GetEntryAssembly
Added Sync version of Subscribe
This commit is contained in:
parent
9581bd49db
commit
9578a3efaa
@ -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