By using project level hooks, we have to make sure we properly check that we're actually operating on an agent service. Instead, we should use service hooks, so it'll only be called if it's an agent service. (WithServiceEventHandler instead of WithProjectEventHandler)
By using project level hooks, we have to make sure we properly check that we're actually operating on an agent service. Instead, we should use service hooks, so it'll only be called if it's an agent service. (WithServiceEventHandler instead of WithProjectEventHandler)