Ejemplo n.º 1
0
Archivo: Printer.cs Proyecto: urish/M3D
 private Printer(PrinterProfile profile, SpoolerClient client)
 {
     this.client             = client;
     mylockID                = Guid.Empty;
     m_printer_profile.Value = profile;
     thread_sync             = new object();
     spool_lock              = new object();
     spool_up_to_date        = false;
     incoming_data           = null;
     Found = new ThreadSafeVariable <bool>
     {
         Value = false
     };
     _connected = new ThreadSafeVariable <bool>
     {
         Value = false
     };
     log                       = new CircularArray <string>(200);
     LogWaits                  = true;
     LogFeedback               = true;
     waiting_object            = null;
     waiting_object_lock       = new object();
     lockstatus                = new ThreadSafeVariable <PrinterLockStatus>(PrinterLockStatus.Unlocked);
     lockstepmode              = new ThreadSafeVariable <bool>(true);
     lockTimeOutSeconds        = new ThreadSafeVariable <int>(0);
     keeplockalive_clock       = new Stopwatch();
     keeplockalive_limit_clock = new Stopwatch();
     finished_lock             = new object();
     m_ChangedKeyValuePairs    = new ConcurrentDictionary <string, string>();
 }
Ejemplo n.º 2
0
Archivo: Printer.cs Proyecto: urish/M3D
 public Printer(string printer_serial_number, PrinterProfile profile, SpoolerClient client)
     : this(profile, client)
 {
     printer_info = new PrinterInfo
     {
         serial_number = new PrinterSerialNumber(printer_serial_number)
     };
 }
Ejemplo n.º 3
0
Archivo: Printer.cs Proyecto: urish/M3D
 public Printer(PrinterInfo info, PrinterProfile profile, SpoolerClient client)
     : this(profile, client)
 {
     printer_info = new PrinterInfo(info);
 }