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

Inheritance diagram for DeepsyPrinterManager:

Public Member Functions

 DeepsyPrinterManager (string ip)
 Create Printer manager that connects to a deepsy device at certain IP More...
 
 DeepsyPrinterManager (string ip, int routerPort, int publishPort)
 Create Printer manager that connects to a deepsy device at certain IP More...
 
 DeepsyPrinterManager (PrinterDeepsyClientDealerConfiguration dealer, PrinterDeepsyClientSubscriberConfiguration subscriber)
 
bool IsServiceAvailable ()
 Current service availability More...
 
IEnumerable< IPrinterGetPrinters ()
 Get List of available printers More...
 
override void Dispose ()
 

Public Attributes

IEnumerable< IPrinterPrinters => GetPrinters()
 Available printer list, that are available for printing and events More...
 
- Public Attributes inherited from DeepsyDisposable
bool IsDiposed => Disposed
 

Protected Member Functions

override void Dispose (bool dispose)
 

Protected Attributes

readonly object _lock = new object()
 
- Protected Attributes inherited from DeepsyDisposable
bool Disposed = false
 

Properties

EventHandler< ServiceAvailabilityEventServiceAvailabilityEvent
 
EventHandler< PrinterListEventPrinterList
 
- Properties inherited from IDeepsyPrinterManager
IEnumerable< IPrinterPrinters [get]
 Get list availabe Printers More...
 

Additional Inherited Members

- Events inherited from IPrinterServiceNotifier
EventHandler< PrinterListEventPrinterList
 
- Events inherited from IServiceAvailable
EventHandler< ServiceAvailabilityEventServiceAvailabilityEvent
 Event raised when the availability of the service changes More...
 

Detailed Description

Constructor & Destructor Documentation

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

Member Function Documentation

IEnumerable<IPrinter> GetPrinters ( )
Returns
IEnumerable with printers
Exceptions
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 IDeepsyPrinterManager.

bool IsServiceAvailable ( )

Implements IServiceAvailable.

Member Data Documentation

IEnumerable<IPrinter> Printers => GetPrinters()