public CompositeEventMap(IEnumerable<ICompositeEventFragmentMap> eventMaps) { var eventMapVisitor = new CompositeEventMapVisitor(); eventMaps.ForEach(frag => frag.Accept(eventMapVisitor)); AddEventFragmentMap = eventMapVisitor.AddEventFragmentMap; HasAspectDefinitions = eventMapVisitor.HasAspectDefinitions; RemoveEventFragmentMap = eventMapVisitor.RemoveEventFragmentMap; RaiseEventFragmentMap = eventMapVisitor.RaiseEventFragmentMap; ContractType = AddEventFragmentMap.ContractType; ContractMember = AddEventFragmentMap.ContractMember; ImplementationType = AddEventFragmentMap.ImplementationType; ImplementationMember = AddEventFragmentMap.ImplementationMember; }
public CompositeEventMap(IEnumerable <ICompositeEventFragmentMap> eventMaps) { var eventMapVisitor = new CompositeEventMapVisitor(); eventMaps.ForEach(frag => frag.Accept(eventMapVisitor)); AddEventFragmentMap = eventMapVisitor.AddEventFragmentMap; HasAspectDefinitions = eventMapVisitor.HasAspectDefinitions; RemoveEventFragmentMap = eventMapVisitor.RemoveEventFragmentMap; RaiseEventFragmentMap = eventMapVisitor.RaiseEventFragmentMap; ContractType = AddEventFragmentMap.ContractType; ContractMember = AddEventFragmentMap.ContractMember; ImplementationType = AddEventFragmentMap.ImplementationType; ImplementationMember = AddEventFragmentMap.ImplementationMember; }