2009-10-01 10 views

Répondre

1

une option: suivre l'adresse IP

0

Vous pouvez utiliser un Semaphore pour l'empêcher . Ce serait quelque chose comme:

Semaphore sem = new Semaphore(0, 5, "<Client IP Address, or Session/Auth Cookie>"); 
if(!sem.WaitOne(0)) 
    throw new Exception(); 

try { 
    ... write download ... 
} 
finally { sem.Release(); } 
Questions connexes