This commit is contained in:
@@ -42,7 +42,7 @@ namespace AyaNova.Biz
|
||||
//optional user id to send directly to them
|
||||
internal static async Task AddGeneralNotifyEvent(NotifyEventType eventType, string message, string name, Exception except = null, long userId = 0)
|
||||
{
|
||||
log.LogTrace($"AddGeneralNotifyEvent processing: [type:{eventType}, userId:{userId}, message:{message}]");
|
||||
log.LogDebug($"AddGeneralNotifyEvent processing: [type:{eventType}, userId:{userId}, message:{message}]");
|
||||
#if (DEBUG)
|
||||
switch (eventType)
|
||||
{
|
||||
@@ -134,7 +134,7 @@ namespace AyaNova.Biz
|
||||
//will iterate the subscriptions and see if any apply here
|
||||
internal static async Task HandlePotentialNotificationEvent(AyaEvent ayaEvent, ICoreBizObjectModel newObject, ICoreBizObjectModel originalObject = null)
|
||||
{
|
||||
log.LogTrace($"HandlePotentialNotificationEvent processing: [AyaType:{newObject.AyaType}, AyaEvent:{ayaEvent}]");
|
||||
log.LogDebug($"HandlePotentialNotificationEvent processing: [AyaType:{newObject.AyaType}, AyaEvent:{ayaEvent}]");
|
||||
//set to true if any changes are made to the context (NotifyEvent added)
|
||||
bool SaveContext = false;
|
||||
try
|
||||
@@ -175,7 +175,7 @@ namespace AyaNova.Biz
|
||||
Name = newObject.Name
|
||||
};
|
||||
await ct.NotifyEvent.AddAsync(n);
|
||||
log.LogTrace($"Adding NotifyEvent: [{n.ToString()}]");
|
||||
log.LogDebug($"Adding NotifyEvent: [{n.ToString()}]");
|
||||
|
||||
//Note: in same event but for MODIFY below if need to delete old notifyevent here
|
||||
// var deleteEventList = await ct.NotifyEvent.Where(z => z.ObjectId == ev.ObjectId && z.AyaType == ev.AyaType).ToListAsync();
|
||||
@@ -241,7 +241,7 @@ namespace AyaNova.Biz
|
||||
Name = newObject.Name
|
||||
};
|
||||
await ct.NotifyEvent.AddAsync(n);
|
||||
log.LogTrace($"Adding NotifyEvent: [{n.ToString()}]");
|
||||
log.LogDebug($"Adding NotifyEvent: [{n.ToString()}]");
|
||||
SaveContext = true;
|
||||
}
|
||||
}
|
||||
@@ -265,7 +265,7 @@ namespace AyaNova.Biz
|
||||
Name = newObject.Name
|
||||
};
|
||||
await ct.NotifyEvent.AddAsync(n);
|
||||
log.LogTrace($"Adding NotifyEvent: [{n.ToString()}]");
|
||||
log.LogDebug($"Adding NotifyEvent: [{n.ToString()}]");
|
||||
SaveContext = true;
|
||||
}
|
||||
}
|
||||
@@ -307,7 +307,7 @@ namespace AyaNova.Biz
|
||||
// Name=newObject.Name
|
||||
// };
|
||||
// await ct.NotifyEvent.AddAsync(n);
|
||||
// log.LogTrace($"Adding NotifyEvent: [{n.ToString()}]");
|
||||
// log.LogDebug($"Adding NotifyEvent: [{n.ToString()}]");
|
||||
|
||||
// //Note: in same event but for MODIFY below if need to delete old notifyevent here
|
||||
// // var deleteEventList = await ct.NotifyEvent.Where(z => z.ObjectId == ev.ObjectId && z.AyaType == ev.AyaType).ToListAsync();
|
||||
@@ -412,7 +412,7 @@ namespace AyaNova.Biz
|
||||
Name = newObject.Name
|
||||
};
|
||||
await ct.NotifyEvent.AddAsync(n);
|
||||
log.LogTrace($"Adding NotifyEvent: [{n.ToString()}]");
|
||||
log.LogDebug($"Adding NotifyEvent: [{n.ToString()}]");
|
||||
SaveContext = true;
|
||||
}
|
||||
}
|
||||
@@ -455,7 +455,7 @@ namespace AyaNova.Biz
|
||||
Name = newObject.Name
|
||||
};
|
||||
await ct.NotifyEvent.AddAsync(n);
|
||||
log.LogTrace($"Adding NotifyEvent: [{n.ToString()}]");
|
||||
log.LogDebug($"Adding NotifyEvent: [{n.ToString()}]");
|
||||
SaveContext = true;
|
||||
}
|
||||
}
|
||||
@@ -481,7 +481,7 @@ namespace AyaNova.Biz
|
||||
}
|
||||
finally
|
||||
{
|
||||
log.LogTrace($"Notify event processing completed");
|
||||
log.LogDebug($"Notify event processing completed");
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user