This commit is contained in:
2020-05-01 21:00:18 +00:00
parent ce5f8f21c2
commit 251f84d2af
3 changed files with 12 additions and 8 deletions

View File

@@ -1,7 +1,5 @@
using System;
using System.Collections.Generic;
using AyaNova.Biz;
using Microsoft.Extensions.Logging;
namespace AyaNova.Biz
{
@@ -216,7 +214,11 @@ namespace AyaNova.Biz
Dictionary<AyaType, BizRoleSet> lastRolesDeserialized = Newtonsoft.Json.JsonConvert.DeserializeObject<Dictionary<AyaType, BizRoleSet>>(lastRoles);
if (lastRolesDeserialized.Count != roles.Count)
{
throw new System.ArgumentException("BizRoles::Constructor - roles were modified from last snapshot for client!!!");
//throw new System.ArgumentException("BizRoles::Constructor - roles were modified from last snapshot for client!!!");
// log =
{
((ILogger)AyaNova.Util.ApplicationLogging.CreateLogger("BizRoles.cs")).LogError("BizRoles::Constructor - roles were modified from last snapshot for client!!!");
}
}