Configure the CAWS Client
All CAWS services needs to be configured before used, using the configure method taking a CarpApp configuration.
// The URI of the CAWS server to connect to.final Uri uri = Uri( scheme: 'https', host: 'dev.carp.dk',);
final CarpApp app = CarpApp( name: "CAWS @ DTU [DEV]", uri: uri,);
// Configure the CARP Service with this app.CarpService().configure(app);The singleton can now be accessed via CarpService().
Any service can be configured based on another service, like this:
CarpParticipationService().configureFrom(CarpService());