SFA.DAS.Activities.Worker
subscribes to events via Azure Service Bus and indexes them via Elastic Search. SFA.DAS.Activities.Client
allows the data to be queried via Elastic Search.
SFA.DAS.Activities | |
Build |
SFA.DAS.Activities.Client | |
Client |
- Install Visual Studio.
- Install Choclatey:
> iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))
- Install Docker:
> choco install docker-for-windows
- Install Elastic Search image:
> docker pull docker.elastic.co/elasticsearch/elasticsearch:5.6.5
- Increase Docker Memory Allocation to 3500 in System Notification Area:
Docker (Right Click) -> Settings -> Advanced -> Memory - slide to 3584 or more
- Run Elastic Search container:
> cd .\tools\elasticsearch.5.6.5
> docker-compose up -d
- Open the solution.
- Set
SFA.DAS.Activities.Worker
as the startup project. - Browse to
~\AppData\Roaming
. - Add a directory named
SFA.DAS.Activities
. - Add a directory to the above directory named
add_paye_scheme
. - Add a file to the above directory named
PayeSchemeAddedMessage.json
containing the following json:
{
"accountId": 5,
"createdAt": "2017-01-01T12:00:00.000Z",
"creatorUserRef": "04FCDEC7-5758-4BD2-A2D4-3E288E9EE047",
"creatorName": "John Doe",
"payeScheme": "333/AA00001"
}
- Set
SFA.DAS.Activities.MessageHandlers
as startup project - Hit F5 to run the job.
- HTTP GET http://localhost:9200/local-activities/_search