libgit2/libgit2sharp — pull request #203 by dahlbyk (2012-08-18 03:01:27+00:00)
Title: Enable thread affinity for life of Repository

See https://github.com/libgit2/libgit2/issues/624#issuecomment-7815470

One caveat: [`Thread.BeginThreadAffinity()`](http://msdn.microsoft.com/en-us/library/system.threading.thread.beginthreadaffinity.aspx) is decorated with [`SecurityCriticalAttribute`](http://msdn.microsoft.com/en-us/library/system.security.securitycriticalattribute.aspx):
> Requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.