/// <inheritdoc/> protected override void Flush() { var scanDescriptor = new ScanDescriptor( type => Predicates.All(p => p(type)), CreateEntityConfigSettings()); foreach (var assembly in AssembliesToScan) { Parent.RegisterScanDescriptor(assembly, scanDescriptor); } }
internal void RegisterScanDescriptor(Assembly assembly, ScanDescriptor scanDescriptor) { ICollection <ScanDescriptor> scanDescriptors; if (!scanTasks.TryGetValue(assembly, out scanDescriptors)) { scanTasks.Add(assembly, scanDescriptors = new List <ScanDescriptor>()); } scanDescriptors.Add(scanDescriptor); }