protected internal override void EnumerateTemplates()

in src/TraceEvent/Parsers/WpfTraceEventParser.cs [5040:5383]


        protected internal override void EnumerateTemplates(Func<string, string, EventFilterResponse> eventsToObserve, Action<TraceEvent> callback)
        {
            if (s_templates == null)
            {
                var templates = new TraceEvent[333];
                templates[0] = WClientCreateVisualTemplate(null);
                templates[1] = WClientAppCtorTemplate(null);
                templates[2] = WClientAppRunTemplate(null);
                templates[3] = WClientStringTemplate(null);
                templates[4] = WClientStringStartTemplate(null);
                templates[5] = WClientStringStopTemplate(null);
                templates[6] = WClientPropParentCheckTemplate(null);
                templates[7] = UpdateVisualStateStartTemplate(null);
                templates[8] = UpdateVisualStateStopTemplate(null);
                templates[9] = WPFElementIDElementNameTemplate(null);
                templates[10] = WPFElementIDTemplate(null);
                templates[11] = WClientFontCacheTemplate(null);
                templates[12] = WClientInputMessageTemplate(null);
                templates[13] = StylusEventQueuedTemplate(null);
                templates[14] = TouchDownReportedTemplate(null);
                templates[15] = TouchMoveReportedTemplate(null);
                templates[16] = TouchUpReportedTemplate(null);
                templates[17] = ManipulationReportFrameTemplate(null);
                templates[18] = ManipulationEventRaisedTemplate(null);
                templates[19] = PenThreadPoolThreadAcquisitionTemplate(null);
                templates[20] = CreateStickyNoteStartTemplate(null);
                templates[21] = CreateStickyNoteStopTemplate(null);
                templates[22] = DeleteTextNoteStartTemplate(null);
                templates[23] = DeleteTextNoteStopTemplate(null);
                templates[24] = DeleteInkNoteStartTemplate(null);
                templates[25] = DeleteInkNoteStopTemplate(null);
                templates[26] = CreateHighlightStartTemplate(null);
                templates[27] = CreateHighlightStopTemplate(null);
                templates[28] = ClearHighlightStartTemplate(null);
                templates[29] = ClearHighlightStopTemplate(null);
                templates[30] = LoadAnnotationsStartTemplate(null);
                templates[31] = LoadAnnotationsStopTemplate(null);
                templates[32] = AddAnnotationStartTemplate(null);
                templates[33] = AddAnnotationStopTemplate(null);
                templates[34] = DeleteAnnotationStartTemplate(null);
                templates[35] = DeleteAnnotationStopTemplate(null);
                templates[36] = GetAnnotationByIdStartTemplate(null);
                templates[37] = GetAnnotationByIdStopTemplate(null);
                templates[38] = GetAnnotationByLocStartTemplate(null);
                templates[39] = GetAnnotationByLocStopTemplate(null);
                templates[40] = GetAnnotationsStartTemplate(null);
                templates[41] = GetAnnotationsStopTemplate(null);
                templates[42] = SerializeAnnotationStartTemplate(null);
                templates[43] = SerializeAnnotationStopTemplate(null);
                templates[44] = DeserializeAnnotationStartTemplate(null);
                templates[45] = DeserializeAnnotationStopTemplate(null);
                templates[46] = UpdateAnnotationWithSNCStartTemplate(null);
                templates[47] = UpdateAnnotationWithSNCStopTemplate(null);
                templates[48] = UpdateSNCWithAnnotationStartTemplate(null);
                templates[49] = UpdateSNCWithAnnotationStopTemplate(null);
                templates[50] = AnnotationTextChangedStartTemplate(null);
                templates[51] = AnnotationTextChangedStopTemplate(null);
                templates[52] = AnnotationInkChangedStartTemplate(null);
                templates[53] = AnnotationInkChangedStopTemplate(null);
                templates[54] = AddAttachedSNStartTemplate(null);
                templates[55] = AddAttachedSNStopTemplate(null);
                templates[56] = RemoveAttachedSNStartTemplate(null);
                templates[57] = RemoveAttachedSNStopTemplate(null);
                templates[58] = AddAttachedHighlightStartTemplate(null);
                templates[59] = AddAttachedHighlightStopTemplate(null);
                templates[60] = RemoveAttachedHighlightStartTemplate(null);
                templates[61] = RemoveAttachedHighlightStopTemplate(null);
                templates[62] = AddAttachedMHStartTemplate(null);
                templates[63] = AddAttachedMHStopTemplate(null);
                templates[64] = RemoveAttachedMHStartTemplate(null);
                templates[65] = RemoveAttachedMHStopTemplate(null);
                templates[66] = WClientParseBamlStartTemplate(null);
                templates[67] = WClientParseBamlStopTemplate(null);
                templates[68] = WClientParseXmlStartTemplate(null);
                templates[69] = WClientParseXmlStopTemplate(null);
                templates[70] = WClientParseFefCrInstStartTemplate(null);
                templates[71] = WClientParseFefCrInstStopTemplate(null);
                templates[72] = WClientParseInstVisTreeStartTemplate(null);
                templates[73] = WClientParseInstVisTreeStopTemplate(null);
                templates[74] = WClientParseRdrCrInstStartTemplate(null);
                templates[75] = WClientParseRdrCrInstStopTemplate(null);
                templates[76] = WClientParseRdrCrInFTypStartTemplate(null);
                templates[77] = WClientParseRdrCrInFTypStopTemplate(null);
                templates[78] = WClientResourceFindStartTemplate(null);
                templates[79] = WClientResourceFindStopTemplate(null);
                templates[80] = WClientResourceCacheValueTemplate(null);
                templates[81] = WClientResourceCacheNullTemplate(null);
                templates[82] = WClientResourceCacheMissTemplate(null);
                templates[83] = WClientResourceStockTemplate(null);
                templates[84] = WClientResourceBamlAssemblyTemplate(null);
                templates[85] = WClientParseXamlStartTemplate(null);
                templates[86] = WClientParseXamlBamlInfoTemplate(null);
                templates[87] = WClientParseXamlStopTemplate(null);
                templates[88] = WClientDRXFlushPageStartTemplate(null);
                templates[89] = WClientDRXFlushPageStopTemplate(null);
                templates[90] = WClientDRXSerializeTreeStartTemplate(null);
                templates[91] = WClientDRXSerializeTreeStopTemplate(null);
                templates[92] = WClientDRXGetVisualStartTemplate(null);
                templates[93] = WClientDRXGetVisualStopTemplate(null);
                templates[94] = WClientDRXReleaseWriterStartTemplate(null);
                templates[95] = WClientDRXReleaseWriterStopTemplate(null);
                templates[96] = WClientDRXGetPrintCapStartTemplate(null);
                templates[97] = WClientDRXGetPrintCapStopTemplate(null);
                templates[98] = WClientDRXPTProviderStartTemplate(null);
                templates[99] = WClientDRXPTProviderStopTemplate(null);
                templates[100] = WClientDRXRasterStartTemplate(null);
                templates[101] = WClientDRXRasterStopTemplate(null);
                templates[102] = WClientDRXOpenPackageStartTemplate(null);
                templates[103] = WClientDRXOpenPackageStopTemplate(null);
                templates[104] = WClientDRXGetStreamStartTemplate(null);
                templates[105] = WClientDRXGetStreamStopTemplate(null);
                templates[106] = WClientDRXPageVisibleTemplate(null);
                templates[107] = WClientDRXPageLoadedTemplate(null);
                templates[108] = WClientDRXInvalidateViewTemplate(null);
                templates[109] = WClientDRXStyleCreatedTemplate(null);
                templates[110] = WClientDRXFindStartTemplate(null);
                templates[111] = WClientDRXFindStopTemplate(null);
                templates[112] = WClientDRXZoomTemplate(null);
                templates[113] = WClientDRXEnsureOMStartTemplate(null);
                templates[114] = WClientDRXEnsureOMStopTemplate(null);
                templates[115] = WClientDRXTreeFlattenStartTemplate(null);
                templates[116] = WClientDRXTreeFlattenStopTemplate(null);
                templates[117] = WClientDRXAlphaFlattenStartTemplate(null);
                templates[118] = WClientDRXAlphaFlattenStopTemplate(null);
                templates[119] = WClientDRXGetDevModeStartTemplate(null);
                templates[120] = WClientDRXGetDevModeStopTemplate(null);
                templates[121] = WClientDRXStartDocStartTemplate(null);
                templates[122] = WClientDRXStartDocStopTemplate(null);
                templates[123] = WClientDRXEndDocStartTemplate(null);
                templates[124] = WClientDRXEndDocStopTemplate(null);
                templates[125] = WClientDRXStartPageStartTemplate(null);
                templates[126] = WClientDRXStartPageStopTemplate(null);
                templates[127] = WClientDRXEndPageStartTemplate(null);
                templates[128] = WClientDRXEndPageStopTemplate(null);
                templates[129] = WClientDRXCommitPageStartTemplate(null);
                templates[130] = WClientDRXCommitPageStopTemplate(null);
                templates[131] = WClientDRXConvertFontStartTemplate(null);
                templates[132] = WClientDRXConvertFontStopTemplate(null);
                templates[133] = WClientDRXConvertImageStartTemplate(null);
                templates[134] = WClientDRXConvertImageStopTemplate(null);
                templates[135] = WClientDRXSaveXpsStartTemplate(null);
                templates[136] = WClientDRXSaveXpsStopTemplate(null);
                templates[137] = WClientDRXLoadPrimitiveStartTemplate(null);
                templates[138] = WClientDRXLoadPrimitiveStopTemplate(null);
                templates[139] = WClientDRXSavePageStartTemplate(null);
                templates[140] = WClientDRXSavePageStopTemplate(null);
                templates[141] = WClientDRXSerializationStartTemplate(null);
                templates[142] = WClientDRXSerializationStopTemplate(null);
                templates[143] = WClientDRXReadStreamStartTemplate(null);
                templates[144] = WClientDRXReadStreamStopTemplate(null);
                templates[145] = WClientDRXGetPageStartTemplate(null);
                templates[146] = WClientDRXGetPageStopTemplate(null);
                templates[147] = WClientDRXLineDownTemplate(null);
                templates[148] = WClientDRXPageDownTemplate(null);
                templates[149] = WClientDRXPageJumpTemplate(null);
                templates[150] = WClientDRXLayoutStartTemplate(null);
                templates[151] = WClientDRXLayoutStopTemplate(null);
                templates[152] = WClientDRXInstantiatedTemplate(null);
                templates[153] = WClientTimeManagerTickStartTemplate(null);
                templates[154] = WClientTimeManagerTickStopTemplate(null);
                templates[155] = WClientLayoutStartTemplate(null);
                templates[156] = WClientLayoutStopTemplate(null);
                templates[157] = WClientMeasureStartTemplate(null);
                templates[158] = WClientMeasureMeasureAbortTemplate(null);
                templates[159] = WClientMeasureStopTemplate(null);
                templates[160] = WClientMeasureMeasureElementBeginTemplate(null);
                templates[161] = WClientMeasureMeasureElementEndTemplate(null);
                templates[162] = WClientArrangeStartTemplate(null);
                templates[163] = WClientArrangeArrangeAbortTemplate(null);
                templates[164] = WClientArrangeStopTemplate(null);
                templates[165] = WClientArrangeArrangeElementBeginTemplate(null);
                templates[166] = WClientArrangeArrangeElementEndTemplate(null);
                templates[167] = WClientLayoutAbortTemplate(null);
                templates[168] = WClientLayoutFireSizeChangedBeginTemplate(null);
                templates[169] = WClientLayoutFireSizeChangedEndTemplate(null);
                templates[170] = WClientLayoutFireLayoutUpdatedBeginTemplate(null);
                templates[171] = WClientLayoutFireLayoutUpdatedEndTemplate(null);
                templates[172] = WClientLayoutFireAutomationEventsBeginTemplate(null);
                templates[173] = WClientLayoutFireAutomationEventsEndTemplate(null);
                templates[174] = WClientLayoutExceptionTemplate(null);
                templates[175] = WClientLayoutInvalidatedTemplate(null);
                templates[176] = WpfHostUmWinMainStartTemplate(null);
                templates[177] = WpfHostUmWinMainEndTemplate(null);
                templates[178] = WpfHostUmInvokingBrowserTemplate(null);
                templates[179] = WpfHostUmLaunchingRestrictedProcessTemplate(null);
                templates[180] = WpfHostUmEnteringMessageLoopTemplate(null);
                templates[181] = WpfHostUmClassFactoryCreateInstanceTemplate(null);
                templates[182] = WpfHostUmReadingDeplManifestStartTemplate(null);
                templates[183] = WpfHostUmReadingDeplManifestEndTemplate(null);
                templates[184] = WpfHostUmReadingAppManifestStartTemplate(null);
                templates[185] = WpfHostUmReadingAppManifestEndTemplate(null);
                templates[186] = WpfHostUmParsingMarkupVersionStartTemplate(null);
                templates[187] = WpfHostUmParsingMarkupVersionEndTemplate(null);
                templates[188] = WpfHostUmIPersistFileLoadTemplate(null);
                templates[189] = WpfHostUmIPersistMonikerLoadStartTemplate(null);
                templates[190] = WpfHostUmIPersistMonikerLoadEndTemplate(null);
                templates[191] = WpfHostUmBindProgressTemplate(null);
                templates[192] = WpfHostUmOnStopBindingTemplate(null);
                templates[193] = WpfHostUmVersionAttachTemplate(null);
                templates[194] = WpfHostUmVersionActivateStartTemplate(null);
                templates[195] = WpfHostUmVersionActivateEndTemplate(null);
                templates[196] = WpfHostUmStartingCLRStartTemplate(null);
                templates[197] = WpfHostUmStartingCLREndTemplate(null);
                templates[198] = WpfHostUmIHlinkTargetNavigateStartTemplate(null);
                templates[199] = WpfHostUmIHlinkTargetNavigateEndTemplate(null);
                templates[200] = WpfHostUmReadyStateChangedTemplate(null);
                templates[201] = WpfHostUmInitDocHostStartTemplate(null);
                templates[202] = WpfHostUmInitDocHostEndTemplate(null);
                templates[203] = WpfHostUmMergingMenusStartTemplate(null);
                templates[204] = WpfHostUmMergingMenusEndTemplate(null);
                templates[205] = WpfHostUmUIActivationStartTemplate(null);
                templates[206] = WpfHostUmUIActivationEndTemplate(null);
                templates[207] = WpfHostUmLoadingResourceDLLStartTemplate(null);
                templates[208] = WpfHostUmLoadingResourceDLLEndTemplate(null);
                templates[209] = WpfHostUmOleCmdQueryStatusStartTemplate(null);
                templates[210] = WpfHostUmOleCmdQueryStatusEndTemplate(null);
                templates[211] = WpfHostUmOleCmdExecStartTemplate(null);
                templates[212] = WpfHostUmOleCmdExecEndTemplate(null);
                templates[213] = WpfHostUmProgressPageShownTemplate(null);
                templates[214] = WpfHostUmAdHocProfile1StartTemplate(null);
                templates[215] = WpfHostUmAdHocProfile1EndTemplate(null);
                templates[216] = WpfHostUmAdHocProfile2StartTemplate(null);
                templates[217] = WpfHostUmAdHocProfile2EndTemplate(null);
                templates[218] = WpfHostDocObjHostCreatedTemplate(null);
                templates[219] = WpfHostXappLauncherAppStartupTemplate(null);
                templates[220] = WpfHostXappLauncherAppExitTemplate(null);
                templates[221] = WpfHostDocObjHostRunApplicationStartTemplate(null);
                templates[222] = WpfHostDocObjHostRunApplicationEndTemplate(null);
                templates[223] = WpfHostClickOnceActivationStartTemplate(null);
                templates[224] = WpfHostClickOnceActivationEndTemplate(null);
                templates[225] = WpfHostInitAppProxyStartTemplate(null);
                templates[226] = WpfHostInitAppProxyEndTemplate(null);
                templates[227] = WpfHostAppProxyCtorTemplate(null);
                templates[228] = WpfHostRootBrowserWindowSetupStartTemplate(null);
                templates[229] = WpfHostRootBrowserWindowSetupEndTemplate(null);
                templates[230] = WpfHostAppProxyRunStartTemplate(null);
                templates[231] = WpfHostAppProxyRunEndTemplate(null);
                templates[232] = WpfHostAppDomainManagerCctorTemplate(null);
                templates[233] = WpfHostApplicationActivatorCreateInstanceStartTemplate(null);
                templates[234] = WpfHostApplicationActivatorCreateInstanceEndTemplate(null);
                templates[235] = WpfHostDetermineApplicationTrustStartTemplate(null);
                templates[236] = WpfHostDetermineApplicationTrustEndTemplate(null);
                templates[237] = WpfHostFirstTimeActivationTemplate(null);
                templates[238] = WpfHostGetDownloadPageStartTemplate(null);
                templates[239] = WpfHostGetDownloadPageEndTemplate(null);
                templates[240] = WpfHostDownloadDeplManifestStartTemplate(null);
                templates[241] = WpfHostDownloadDeplManifestEndTemplate(null);
                templates[242] = WpfHostAssertAppRequirementsStartTemplate(null);
                templates[243] = WpfHostAssertAppRequirementsEndTemplate(null);
                templates[244] = WpfHostDownloadApplicationStartTemplate(null);
                templates[245] = WpfHostDownloadApplicationEndTemplate(null);
                templates[246] = WpfHostDownloadProgressUpdateTemplate(null);
                templates[247] = WpfHostXappLauncherAppNavigatedTemplate(null);
                templates[248] = WpfHostUpdateBrowserCommandsStartTemplate(null);
                templates[249] = WpfHostUpdateBrowserCommandsEndTemplate(null);
                templates[250] = WpfHostPostShutdownTemplate(null);
                templates[251] = WpfHostAbortingActivationTemplate(null);
                templates[252] = WpfHostIBHSRunStartTemplate(null);
                templates[253] = WpfHostIBHSRunEndTemplate(null);
                templates[254] = NavigationNavigationAsyncWorkItemTemplate(null);
                templates[255] = NavigationNavigationWebResponseReceivedTemplate(null);
                templates[256] = NavigationNavigationEndTemplate(null);
                templates[257] = NavigationNavigationContentRenderedTemplate(null);
                templates[258] = NavigationNavigationStartTemplate(null);
                templates[259] = NavigationNavigationLaunchBrowserTemplate(null);
                templates[260] = NavigationNavigationPageFunctionReturnTemplate(null);
                templates[261] = DrawBitmapTemplate(null);
                templates[262] = BitmapCopyTemplate(null);
                templates[263] = SetClipTemplate(null);
                templates[264] = DWMDraw_ClearStartTemplate(null);
                templates[265] = DWMDraw_ClearStopTemplate(null);
                templates[266] = DWMDraw_BitmapStartTemplate(null);
                templates[267] = DWMDraw_BitmapEndTemplate(null);
                templates[268] = DWMDraw_RectangleStartTemplate(null);
                templates[269] = DWMDraw_RectangleEndTemplate(null);
                templates[270] = DWMDraw_GeometryStartTemplate(null);
                templates[271] = DWMDraw_GeometryEndTemplate(null);
                templates[272] = DWMDraw_ImageStartTemplate(null);
                templates[273] = DWMDraw_ImageEndTemplate(null);
                templates[274] = DWMDraw_GlyphRunStartTemplate(null);
                templates[275] = DWMDraw_GlyphRunEndTemplate(null);
                templates[276] = DWMDraw_BeginLayerStartTemplate(null);
                templates[277] = DWMDraw_BeginLayerEndTemplate(null);
                templates[278] = DWMDraw_EndLayerStartTemplate(null);
                templates[279] = DWMDraw_EndLayerEndTemplate(null);
                templates[280] = DWMDraw_ClippedBitmapStartTemplate(null);
                templates[281] = DWMDraw_ClippedBitmapEndTemplate(null);
                templates[282] = DWMDraw_Template(null);
                templates[283] = LayerEventStartTemplate(null);
                templates[284] = LayerEventStopTemplate(null);
                templates[285] = WClientDesktopRTCreateStartTemplate(null);
                templates[286] = WClientDesktopRTCreateStopTemplate(null);
                templates[287] = WClientUceProcessQueueStartTemplate(null);
                templates[288] = WClientUceProcessQueueStopTemplate(null);
                templates[289] = WClientUceProcessQueueTemplate(null);
                templates[290] = WClientUcePrecomputeStartTemplate(null);
                templates[291] = WClientUcePrecomputeStopTemplate(null);
                templates[292] = WClientUceRenderStartTemplate(null);
                templates[293] = WClientUceRenderStopTemplate(null);
                templates[294] = WClientUcePresentStartTemplate(null);
                templates[295] = WClientUcePresentStopTemplate(null);
                templates[296] = WClientUceResponseTemplate(null);
                templates[297] = WClientUceCheckDeviceStateTemplate(null);
                templates[298] = VisualCacheAllocTemplate(null);
                templates[299] = VisualCacheUpdateTemplate(null);
                templates[300] = CreateChannelTemplate(null);
                templates[301] = CreateOrAddOnChnlTemplate(null);
                templates[302] = CreateWpfGfxResourceTemplate(null);
                templates[303] = ReleaseOnChannelTemplate(null);
                templates[304] = UnexpectedSoftwareFallbackTemplate(null);
                templates[305] = WClientInterlockedRenderStartTemplate(null);
                templates[306] = WClientInterlockedRenderStopTemplate(null);
                templates[307] = WClientRenderHandlerStartTemplate(null);
                templates[308] = WClientRenderHandlerStopTemplate(null);
                templates[309] = WClientAnimRenderHandlerStartTemplate(null);
                templates[310] = WClientAnimRenderHandlerStopTemplate(null);
                templates[311] = WClientMediaRenderStartTemplate(null);
                templates[312] = WClientMediaRenderStopTemplate(null);
                templates[313] = WClientPostRenderTemplate(null);
                templates[314] = WClientQPCFrequencyTemplate(null);
                templates[315] = WClientPrecomputeSceneStartTemplate(null);
                templates[316] = WClientPrecomputeSceneStopTemplate(null);
                templates[317] = WClientCompileSceneStartTemplate(null);
                templates[318] = WClientCompileSceneStopTemplate(null);
                templates[319] = WClientUIResponseTemplate(null);
                templates[320] = WClientUICommitChannelTemplate(null);
                templates[321] = WClientUceNotifyPresentTemplate(null);
                templates[322] = WClientScheduleRenderTemplate(null);
                templates[323] = WClientOnRenderStartTemplate(null);
                templates[324] = WClientOnRenderStopTemplate(null);
                templates[325] = WClientCreateIRTTemplate(null);
                templates[326] = WClientPotentialIRTResourceTemplate(null);
                templates[327] = WClientUIContextDispatchStartTemplate(null);
                templates[328] = WClientUIContextDispatchStopTemplate(null);
                templates[329] = WClientUIContextPostTemplate(null);
                templates[330] = WClientUIContextAbortTemplate(null);
                templates[331] = WClientUIContextPromoteTemplate(null);
                templates[332] = WClientUIContextIdleTemplate(null);
                s_templates = templates;
            }
            foreach (var template in s_templates)
                if (eventsToObserve == null || eventsToObserve(template.ProviderName, template.EventName) == EventFilterResponse.AcceptEvent)
                    callback(template);
        }