public void Scan(Assembly stepsAssembly) { foreach (var type in StepsClasses.FindInAssemblyAndReferencedAssemblies(stepsAssembly)) { Scan(type); } }
public async Task ExecuteAfterRun() { foreach (var stepsClass in StepsClasses.FindInAssemblyAndReferencedAssemblies(assembliesToScan)) { foreach (var method in FindMethodsWithAttribute <AfterRunAttribute>(stepsClass)) { await ExecuteMethod(stepsClass, method) .ConfigureAwait(false); } } }