public void Process(ModuleBuilder ModBldr, ArrayList 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 = (EventItfInfo)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, ArrayList EventItfList) { this.m_Module = ModBldr; int count = EventItfList.Count; for (int i = 0; i < count; i++) { EventItfInfo info = (EventItfInfo)EventItfList[i]; Type eventItfType = info.GetEventItfType(); Type srcItfType = info.GetSrcItfType(); string eventProviderName = info.GetEventProviderName(); Type sinkHelperType = new EventSinkHelperWriter(this.m_Module, srcItfType, eventItfType).Perform(); new EventProviderWriter(this.m_Module, eventProviderName, eventItfType, srcItfType, sinkHelperType).Perform(); } }