Click or drag to resize
ParticleEventManager Class
This class is used to manage the stream of events from the Particle Cloud and Turn them into native .net events
Inheritance Hierarchy
SystemObject
  ParticleParticleEventManager

Namespace: Particle
Assembly: Particle (in Particle.dll) Version: 0.8.5.14 (0.8.5.14)
Syntax
public class ParticleEventManager

The ParticleEventManager type exposes the following members.

Constructors
  NameDescription
Protected methodParticleEventManager
Initializes a new instance of the ParticleEventManager class. Without requiring the Access Token, or Uri mostly used for unit tests
Public methodParticleEventManager(Uri, String)
Initializes a new instance of the ParticleEventManager class.
Top
Properties
  NameDescription
Public propertyIsRunning
Gets a value indicating whether this instance is running.
Public propertyReadTimeout
How long in Milliseconds to wait before a read timeout occurs Default: 30000
Public propertyReconnectDelay
How long to delay before reconnecting after being disconnected in Milliseconds Default: 1000
Top
Methods
  NameDescription
Protected methodConnectToClient
Connects to client.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Protected methodfireEvent
Fires the event.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodListensToStreamAsync
Listenses to stream for Web Events
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStart
Starts listening to the events coming in from the specified stream
Public methodStop
Stops listening to the event stream
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Events
  NameDescription
Public eventClosed
Occurs when we stop listening to events
Public eventConnected
Occurs when we have connected for the first time.
Public eventError
Occurs when there has been an error from the connection
Public eventEvents
Occurs when an event is encountered from the particle cloud api
Public eventReconnected
Occurs when we have reconnected to the client
Public eventReconnecting
Occurs when we are going to try and reconnect to the client
Top
Fields
  NameDescription
Protected field_stop
Used to determen if we should keep running. If this is false we keep restarting and connecting to the event service If this is true stop listening to the event service
Top
See Also