Tekelija.Allegro

More or less, main module. Handles ticket update, create et al.

Configuration

Module config

{
  "Allegro": {
    "Database": null,
    "ConnectionString": null,
    "RegionId": null,
    "RecoOriginDesc": null,
    "LogTicketChanges": null,
    "QueryAMLAddress": false,
    "DatapoolNotificationSlice": null
  }
}
Name Type Default Description
Database string sqlite Database to use (sqlite, mysql, mssql)
ConnectionString string ‘datasource=./allegro.db;cache=shared;’ Database connection string
RegionId int null Region id
RecoOriginDesc string null RECO origin for the ticket
LogTicketChanges bool false Should ticket changes be logged or not
QueryAMLAddress bool false Should allegro query address from received AML location data or not
DatapoolNotificationSlice int 10 Time interval for sending notifications to datapool (in seconds, default = 10 sec), 0 will disable queuing

If DatapoolNotificationSlice is set to zero datapool notifications will be sent immediately. If set to something else than zero or left at default 10 seconds ticket update notifications will be queued for up to configured timeslice.

Message bus config

{
  "MessageBus": {
    "Url": "rabbitmq://localhost",
    "Username": null,
    "Password": null,
    "Endpoint": "<endpoint-name>",
    "MessageRepositoryUri": null
  }
}

Parameters:

Name Type Default Description
Url string null RabbitMQ url (rabbitmq://…)
Username string null RabbitMQ username
Password string null RabbitMQ user password
Endpoint string null RabbitMQ endpoint
MessageRepositoryUri string host name Origin of the call, may have some sense for global call data collection setup

Authorization config

{
  "AuthServer": {
    "Issuer": "https://authenticatomatic.urszr.si:22000",
    "ClientId": null,
    "ClientSecret": null,
    "Audience": null
  }
}
Name Type Default Description
Issuer string null OAuth server url
ClientId string null Authorization app id
ClientSecret string null Authorization app secret
Audience string[] null Array of audiences (scope resources) to be used in token validation