How to execute a common code before the execution of every Job

Is there something here as an equivalent of a HttpModule in Asp.Net pipeline.
I would like to run a common logic before the execution of every Job in a transparent way.

We do something similar, we have an abstract job class that contains two methods, one is called Execute and contains the code we want run before and after every job. In this method we call the second method which is abstract and called Run. Then all of our jobs inherit from this base class and implement the Run method.
When a job is enqueued it is done on the Execute method, which then calls the overridden Run method depending on what type of job it is.

You could use a JobFilter.

JobFilter looks promising. Thank you very much