CloudEventsService Class
Contains a series of methods to start new events in the cloud;
This is done by:
- DB update – Updating the relevant data to Cosmos DB and Redis Cache
- Service Bus – Shoots events into the Azure Service Bus, from which the Event Handler can pick them up and handle them as it sees fit.
This class can also be used to retrieve the state of events in the Azure Service Bus.
Namespace: MobileTrack.Web.Components.ServicesAssembly: MobileTrack.Web.Components (in MobileTrack.Web.Components.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
public sealed class CloudEventsService : IDisposable
- Inheritance
- Object CloudEventsService
- Implements
- IDisposable
If an exception happens because the event could not be created due to failing to connect,
ensure ports 5671 and 5672 are open (for AMQP WebSockets).
| CloudEventsService |
Contains a series of methods to invoke new Topic events in the Azure Event Grid.
|
| Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
| GetAllQueuesStates |
Retrieves the state of all Queues in the Azure Service Bus.
|
| GetQueueState |
Retrieves the state of a Queue in the Azure Service Bus.
|
| InvokeOnAccountCreated |
Saves the new account to disc, generates and saves a temporary password for it,
and then invokes the Event Grid Topic that the Action Handler can start its process.
|
| InvokeOnAccountDeleted |
(Soft-)deletes the updated account to disc, and then invokes the Event Grid Topic that the Action Handler can start its process.
|
| InvokeOnAccountUpdated |
Saves the updated account to disc, and then invokes the Event Grid Topic that the Action Handler can start its process.
|
| InvokeOnDeviceCommand |
Invokes the Event Grid Topic to send a command to the device that the DeviceReceiver can pick up on.
|
| InvokeOnDeviceCreated |
Saves the new device to disc and then invokes the Event Grid Topic that the Action Handler can start its process.
|
| InvokeOnDeviceDeleted |
(Soft-)deletes the updated device to disc, and then invokes the Event Grid Topic that the Action Handler can start its process.
|
| InvokeOnDeviceRebuild |
(Soft-)deletes the updated device to disc, re-adds it under a new ID, and then invokes the Event Grid Topic that the Action Handler can start its process.
|
| InvokeOnDeviceUpdated |
Saves the updated device to disc, and then invokes the Event Grid Topic that the Action Handler can start its process.
|
| InvokeOnEnvironmentCreated |
Saves the new environment to disc and then invokes the Event Grid Topic that the Action Handler can start its process.
|
| InvokeOnEnvironmentDeleted |
(Soft-)deletes the updated environment to disc, and then invokes the Event Grid Topic that the Action Handler can start its process.
|
| InvokeOnEnvironmentUpdated |
Saves the updated environment to disc, and then invokes the Event Grid Topic that the Action Handler can start its process.
|