I created a block that is shown on the page of a custom entity type. Now I want to access the context since all Blocks seem to be context aware. However the context is empty. I debugged to the line I wanted to read the context value and then I saw that the context is completely empty.

What do I have to do that my Block has a Context? Can someone provide a Basic Example of a Block using the context it knows?