예제 #1
0
        /// <summary>
        /// Constructor for creating instance with connection to Database.
        /// </summary>
        /// <param name="db">Reference to database.</param>
        public Synchronization(Database db)
        {
            deviceFinder = new DeviceFinder(db);
            responder = new Responder(this);

            ApplicationInfo appInfo = db.GetApplicationInfo();
            this.db = db;
            InstanceID = appInfo.InstanceID;
            GroupID = appInfo.GroupID;
            Name = appInfo.Name;
            Responding = appInfo.Visible;

            localChangeFinder = new LocalChangeFinder(db, this);
        }