pjvds / ncqrs

Ncqrs Framework - The CQRS Framework for .NET
Other
542 stars 162 forks source link

Fixed ThreadStatic initialization #30

Closed fzawada closed 13 years ago

fzawada commented 13 years ago

AggregateRoot's private fields marked with [ThreadStatic] was initialized in-place. Such initialization occurs only once, that is, for one thread only. Results with NREs. Fixed by adding proper initialization code. See Note under Remarks for reference http://msdn.microsoft.com/en-us/library/system.threadstaticattribute.aspx

fzawada commented 13 years ago

Noticed it's already fixed with pull from ashic in development branch...