obsolete EndpointName should be static

so people get the correct warning for the static usage
var