You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If connection factory failed and throw a exception (timeout...), Lazy<IConnection> will cache exception and rethrow it everytime when you access it's Value Property.
In PublicationOnly thread safety mode, multiple threads can invoke the initialization logic but the first thread to complete the initialization successfully sets the value of the Lazy instance.
Maybe we should add LazyThreadSafetyMode.PublicationOnly to Lazy<T>'s ctor ?
Problem
abp/framework/src/Volo.Abp.RabbitMQ/Volo/Abp/RabbitMQ/ConnectionPool.cs
Lines 28 to 37 in 6b32974
If connection factory failed and throw a exception (timeout...),
Lazy<IConnection>
will cache exception and rethrow it everytime when you access it'sValue
Property.Solution
According to this link:
Maybe we should add
LazyThreadSafetyMode.PublicationOnly
toLazy<T>
's ctor ?The text was updated successfully, but these errors were encountered: