示例#1
0
        /// <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);
            }
        }
示例#2
0
        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);
        }