ozz

Apr
8
comment Is this static dictionary field thread safe?
Useful answer. But I don't have problem with seeing old values(stale values). Period of Refreshing is 30 seconds. So seeing old values is not primary issue for this scenerio. The performance is more important concern. Thanks.
Apr
8
comment Is this static dictionary field thread safe?
There is no problem to see old values. Seeing null or getting exception is problem.
Apr
8
accepted Is this static dictionary field thread safe?
Apr
8
comment Is this static dictionary field thread safe?
So could you correct your answer.. My implemantation is thread-safe ?
Apr
8
comment Is this static dictionary field thread safe?
Because set operation is atomic. There is no need to lock RefreshUsers method also I think.
Apr
8
comment Is this static dictionary field thread safe?
No problem with it. The question is during "_Users= res;" command does anyone get exception?
Apr
8
comment Is this static dictionary field thread safe?
Thanks i got it. But Is 1000 GetUser Calls per Second serious performance penalty with this implemantation? Could you suggest better way?
Apr
8
comment Is this static dictionary field thread safe?
1- Is Lock cost too high with this implemantation? 2-If I use lock why i dont use ConcurrentDictionary?
Apr
8
revised Is this static dictionary field thread safe?
edited title
Apr
8
asked Is this static dictionary field thread safe?
Apr
8
comment Overwrite pdf file without "file in use" or "access denied" exceptions in asp.net mvc
Yep #frikinside it works.Give full control to IIS_IUSRS for uploaded file. An attention do not override your uploaded document manually.
Apr
1
awarded Nice Question
Mar
31
comment Overwrite pdf file without "file in use" or "access denied" exceptions in asp.net mvc
Yep I will check and deploy to production server.. And give a feedback in a week.
Mar
31
comment Overwrite pdf file without "file in use" or "access denied" exceptions in asp.net mvc
If FileShare trick works your codes work :) Thanks.
Mar
31
accepted Overwrite pdf file without "file in use" or "access denied" exceptions in asp.net mvc
Mar
31
comment Overwrite pdf file without "file in use" or "access denied" exceptions in asp.net mvc
I've edited question, in summary FilePathResult does not have FileShare option..
Mar
31
revised Overwrite pdf file without "file in use" or "access denied" exceptions in asp.net mvc
added 704 characters in body
Mar
31
revised Overwrite pdf file without "file in use" or "access denied" exceptions in asp.net mvc
added 58 characters in body
Mar
31
comment Overwrite pdf file without "file in use" or "access denied" exceptions in asp.net mvc
It smells I have to use SQL, because SQL concurrency management is far away better than file system?
Mar
31
comment Overwrite pdf file without "file in use" or "access denied" exceptions in asp.net mvc
There is no race on upload side. (Only a user can upload new pdf). So I have to lock reading process(Pdf download operation). But if I lock reading process we are at starting point?
1 2 3 4 5