public void Process(ModuleBuilder ModBldr, List <EventItfInfo> EventItfList) { // Store the input/output module. m_Module = ModBldr; // Generate the TCE adapters for all the event sources. int NumEvItfs = EventItfList.Count; for (int cEventItfs = 0; cEventItfs < NumEvItfs; cEventItfs++) { // Retrieve the event interface info. EventItfInfo CurrEventItf = EventItfList[cEventItfs]; // Retrieve the information from the event interface info. Type EventItfType = CurrEventItf.GetEventItfType(); Type SrcItfType = CurrEventItf.GetSrcItfType(); String EventProviderName = CurrEventItf.GetEventProviderName(); // Generate the sink interface helper. Type SinkHelperType = new EventSinkHelperWriter(m_Module, SrcItfType, EventItfType).Perform(); // Generate the event provider. new EventProviderWriter(m_Module, EventProviderName, EventItfType, SrcItfType, SinkHelperType).Perform(); } }
public void Process(ModuleBuilder ModBldr, List<EventItfInfo> EventItfList) { // Store the input/output module. m_Module = ModBldr; // Generate the TCE adapters for all the event sources. int NumEvItfs = EventItfList.Count; for (int cEventItfs = 0; cEventItfs < NumEvItfs; cEventItfs++) { // Retrieve the event interface info. EventItfInfo CurrEventItf = EventItfList[cEventItfs]; // Retrieve the information from the event interface info. Type EventItfType = CurrEventItf.GetEventItfType(); Type SrcItfType = CurrEventItf.GetSrcItfType(); String EventProviderName = CurrEventItf.GetEventProviderName(); // Generate the sink interface helper. Type SinkHelperType = new EventSinkHelperWriter(m_Module, SrcItfType, EventItfType).Perform(); // Generate the event provider. new EventProviderWriter(m_Module, EventProviderName, EventItfType, SrcItfType, SinkHelperType).Perform(); } }