New sample to demonstrate setting endpoint in the BaseService

To set the endpoint in the BaseService you must pass the endpoint name or endpoint instance in the arguments passed to the BaseService constructor. Changed the BaseService constructor to handle the case were an Endpoint instance is passed in. Added a new sample to demonstrate setting endpoint in the BaseService.