The ServiceContext object is passed to the DBEService while initialized. It contains many information related to the service as:
homeDirectory: path where the service is deployed and very useful to access some resources
id: service identifier
endpoint: external endpoint (URL) used by others to talk with the service
By means the ServiceContext it is also possible to access to specific parameters needed by the service. These parameters can be written in the deployment.props file.
ServiceContext can be used also to get some other needed service deployed within the DBE network. The getService method can be used to retrieve any well known service proxy. If the service is not deployed null will be returned.