This commit is contained in:
@@ -126,7 +126,7 @@ namespace AyaNova.Biz
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//This is told about an event and then determines if there are any subscriptions related to that event and proceses them accordingly
|
||||
//todo: this should take some kind of general event type like the AyaEvent types (i.e. which CRUD operation is in effect if relevant)
|
||||
//and also a biz object before and after or just before if not a change and also a AyaType
|
||||
@@ -141,10 +141,12 @@ namespace AyaNova.Biz
|
||||
bool SaveContext = false;
|
||||
try
|
||||
{
|
||||
|
||||
|
||||
using (AyContext ct = AyaNova.Util.ServiceProviderProvider.DBContext)
|
||||
{
|
||||
//short circuit if there are no subscriptions which would be typical of a v8 migrate scenario or fresh import or just not using notification
|
||||
if(!await ct.NotifySubscription.AnyAsync())
|
||||
return;
|
||||
|
||||
//switch through AyaEvent then individual Ayatypes as required for event types
|
||||
switch (ayaEvent)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user