Tag Info

New answers tagged


In ASP.NET MVC, there are attributes that you can apply to the Controller methods that divert calls to an Unauthorized controller if the user isn't authenticated. This makes sense to me, since you want to catch intrusion attempts very early in the process. If the user isn't authenticated, the controller method doesn't even execute. Once the user has been ...


Stating the obvious, creating a synchronized stream is just-about completely pointless1. It isn't that you cannot ensure the steams internals aren't mangled by multi-threading, that's actually really easy. The problem comes from the fact that just almost all code relies on implicit exclusive access to the stream to ensure that conceptually atomic pieces of ...

Top 50 recent answers are included