Manager for access the Context functionalities and events raised More...

Inheritance diagram for DeepsyContextManager:

Public Member Functions

 DeepsyContextManager ()
 Create Context manager that connects to a deepsy device at 127.0.0.1 IP More...
 
 DeepsyContextManager (string ip)
 Create Context manager that connects to a deepsy device at certain IP More...
 
 DeepsyContextManager (ContextDeepsyClientDealerConfiguration dealer, ContextDeepsyClientSubscriberConfiguration subscriber)
 Create Context manager that connects to a deepsy device at certain IP More...
 
 DeepsyContextManager (int routePort, int publishPort)
 Create Context manager that connects to a deepsy device at 127.0.0.1 IP More...
 
IEnumerable< IContextGetContext ()
 Context instances More...
 
bool IsServiceAvailable ()
 Current service availability More...
 
override void Dispose ()
 

Protected Member Functions

override void Dispose (bool dispose)
 

Properties

EventHandler< ServiceAvailabilityEventServiceAvailabilityEvent
 

Additional Inherited Members

- Public Attributes inherited from DeepsyDisposable
bool IsDiposed => Disposed
 
- Protected Attributes inherited from DeepsyDisposable
bool Disposed = false
 
- Events inherited from IServiceAvailable
EventHandler< ServiceAvailabilityEventServiceAvailabilityEvent
 Event raised when the availability of the service changes More...
 

Detailed Description

Constructor & Destructor Documentation

DeepsyContextManager ( string  ip)
Parameters
ipstring IP like "127.0.0.1" that is the public deepsy device IP
Parameters
ipstring IP like "127.0.0.1" that is the public deepsy device IP
DeepsyContextManager ( int  routePort,
int  publishPort 
)
Parameters
routerPortdeepsy port for sending request
publishPortdeepsy port for getting events

Member Function Documentation

IEnumerable<IContext> GetContext ( )
Exceptions
NotAvailableException (DPY_NOT_FOUND)Thrown when service don't respond in time
NotAvailableException (NOT_AVAILABLE)Thrown when service is not available
NotAvailableException (DPY_TIMEOUT)Thrown when service don't respond in time
HalExceptionThrown when service returns an error

Implements IDeepsyContextManager.

bool IsServiceAvailable ( )

Implements IServiceAvailable.