Example #1
0
        public static async Task CompareAsync(ApiDictionary apiDictionary1, ApiDictionary apiDictionary2)
        {
            if ((apiDictionary1 == null) || (apiDictionary2 == null))
            {
                return;
            }
            IList <Task> tasks = new List <Task>();

            foreach (var apis1 in apiDictionary1.Content)
            {
                if (apiDictionary2.Content.ContainsKey(apis1.Key))
                {
                    tasks.Add(ApiList.CompareAsync(apis1.Value, apiDictionary2.Content[apis1.Key]));
                }
                else
                {
                    apis1.Value.AddOrUpdateState(StateEnum.ApiNotFound);
                    apis1.Value.UpdateStatus();
                }
            }
            await Task.WhenAll(tasks);
        }
Example #2
0
 public ApiList(ApiDictionary parent) : base(parent)
 {
 }