Свойство | Type | Description | |
---|---|---|---|
_stop | bool |
Méthode | Description | |
---|---|---|
ParticleEventManager ( |
Initializes a new instance of the ParticleEventManager class.
|
|
Start ( ) : void |
Starts listening to the events coming in from the specified stream
|
|
Stop ( ) : void |
Stops listening to the event stream
|
Méthode | Description | |
---|---|---|
ConnectToClient ( ) : System.Threading.Tasks.Task |
Connects to client.
|
|
ListensToStreamAsync ( Stream eventStream ) : System.Threading.Tasks.Task |
Listenses to stream for Web Events
|
|
ParticleEventManager ( ) : Newtonsoft.Json |
Initializes a new instance of the ParticleEventManager class. Without requiring the Access Token, or Uri mostly used for unit tests
|
|
fireEvent ( String eventName, |
Fires the event.
|
protected ConnectToClient ( ) : System.Threading.Tasks.Task | ||
Résultat | System.Threading.Tasks.Task |
protected ListensToStreamAsync ( Stream eventStream ) : System.Threading.Tasks.Task | ||
eventStream | Stream | The event stream. |
Résultat | System.Threading.Tasks.Task |
protected ParticleEventManager ( ) : Newtonsoft.Json | ||
Résultat | Newtonsoft.Json |
public ParticleEventManager ( |
||
streamUri | The stream URI. i.e. https://api.particle.io/v1/devices/events | |
accessToken | String | The access token for authentication. |
Résultat | Newtonsoft.Json |
protected fireEvent ( String eventName, |
||
eventName | String | Name of the event. |
data | The data. | |
Résultat | void |