public sealed override void Initialize(AnalysisContext context) { context.RegisterCompilationStartAction(compilationContext => { var analyzerContext = new GDPRControllerAnalyzerContext(compilationContext); // Only do work if ControllerAttribute is defined. if (analyzerContext.ControllerAttribute == null) { return; } InitializeWorker(analyzerContext); }); }
protected abstract void InitializeWorker(GDPRControllerAnalyzerContext analyzerContext);