Define the endpoint name at initialization time:
var endpointConfiguration = new EndpointConfiguration("MyEndpoint");
By default, the endpoint's input queue name is the same as endpoint's name.
The input queue name can be overridden:
Changing the input queue may also require adjusting the routing configuration for senders to send messages to the renamed queue. See routing configuration.