The MineServer type exposes the following members.

Constructors

  Name Description
Public method MineServer
Initializes a new instance of the Server class.

Methods

  Name Description
Public method ClearCommandQueue
Clear queue of all commands to be sent to sensor
Public method EnqueueCommand
Queues sensor specific command to be sent down
Public method Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public method FindGateway
Access to the object instances used by the server. Returns null if gatewayID does not belong to any of the registered gateways.
Public method FindSensor
Access to the object instances used by the server. Returns null if sensorID does not belong to any of the registered gateways.
Public method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected method OnGatewayMessage
Fires Gateway event.
Protected method OnLogException
Fires the LogException event.
Protected method OnPersistGateway
Fires PersistGateway event.
Protected method OnPersistSensor
Fires PersitSensor event.
Protected method OnSensorMessages
Fires the SensorMessage event.
Public method RegisterGateway
Adds the gateway to the servers list of valid objects
Public method RegisterSensor
Adds the sensor to the servers list of valid objects
Public method RemoveGateway
Removes the gateway from the servers list of valid objects
Public method RemoveSensor
Removes the sensor from the servers list of valid objects
Public method StartServer
This call starts the socket listeners that the gateways will use to communicate
Public method StopServer
This call stops the socket listeners that the gateways will use to communicate
Public method ToString
Returns a string that represents the current object.
(Inherited from Object.)

Events

  Name Description
Public event GatewayMessage
Fired when a message is received from a gateway.
Public event LogException
Fired when an exception is caught allowing the exception to be logged.
Public event PersistGateway
Fired when changes have been made to the gateway object that can be persisted to a permanent data store.
Public event PersistSensor
Fired when changes have been made to the sensor object that can be persisted to a permanent data store.
Public event SensorMessage
Fired when one or more sensor messages are received.

See Also