static void Main(string[] args) { DataBackend backend = new DataBackend(); backend.initialize(); MailService mailer = new MailService("smtp.googlemail.com"); ServerLogic logic = new ServerLogic(backend, mailer); AutoAccountingThread accounter = new AutoAccountingThread(backend, mailer); Thread accounterThread = new Thread(new ThreadStart(accounter.run)); accounterThread.Start(); SampleLockerThread locker = new SampleLockerThread(backend); Thread lockerThread = new Thread(new ThreadStart(locker.run)); lockerThread.Start(); new Listener().run(logic); }
public Patient(DataRow row, DataBackend backend) : base(row, backend) { }
public Analysis(DataRow row, DataBackend backend) : base(row, backend) { }
public AutoAccountingThread(DataBackend backend, MailService mailer) { this.Backend = backend; this.Mailer = mailer; }
public Hospital(DataRow row, DataBackend backend) : base(row, backend) { }
public ServerLogic(DataBackend backend, MailService mailer) { this.Backend = backend; this.Mailer = mailer; }
public User(DataRow row, DataBackend backend) : base(row, backend) { }
public SampleData(DataRow row, DataBackend backend) : base(row, backend) { }
/// <summary> /// Konstruktor /// </summary> /// <param name="row">Datensatz</param> /// <param name="backend">DataBackend Referenz</param> public DataBaseMapper(DataRow row, DataBackend backend) { this.row = row; this.backend = backend; }
private TimeSpan cooldown = new TimeSpan(0, 1, 0); //Creates a timespan of 1 minute #endregion Fields #region Constructors public SampleLockerThread(DataBackend backend) { this.Backend = backend; }