Beispiel #1
0
 public bool InsertAe()
 {
     try
     {
         var userEntity            = DbClient.GetUniqueEntity(UniqueEntityType.User);
         var computerEntity        = DbClient.GetUniqueEntity(UniqueEntityType.Computer);
         var suspicousActivitities = new List <BsonDocument>();
         for (var i = 0; i < _saAmount; i++)
         {
             suspicousActivitities.Add(DocumentCreator.SaFillerAe(userEntity, computerEntity, SelectedDomainControllers.FirstOrDefault(), DomainList.FirstOrDefault()?.Name));
         }
         DbClient.InsertSaBatch(suspicousActivitities);
         return(true);
     }
     catch (Exception aeException)
     {
         Logger.Error(aeException);
         return(false);
     }
 }