static void Main(string[] args) { SyncManager _syncManager = new SyncManager(1000); _syncManager.AddSync(new QueueCollection()); _syncManager.SyncBegin += new SyncManager.SyncBeginHandler(_syncManager_SyncBegin); _syncManager.SyncComplete += new EventHandler(_syncManager_SyncComplete); _syncManager.SyncFailed += new SyncManager.SyncFailedHandler(_syncManager_SyncFailed); _syncManager.SyncRetry += new SyncManager.SyncRetryHandler(_syncManager_SyncRetry); _syncManager.SyncFinish += new SyncManager.SyncFinishHandler(_syncManager_SyncFinish); _syncManager.BeginSync(); Console.ReadLine(); _syncManager.EndSync(); }