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
The entire idea behind MessagingEntityCreationOptions.CreateAsTemporary is that the framework will clean up the messaging entity when it's no longer being used.
The challenge here is that many MessageSource/MessagePublisher instances may be referencing the same temporary entity and we can only clean it up once we know all of those instances that are referencing it have been thrown away. I think this will require some kind of reference counting mechanism on the MessageTypePathMappingDetails instance that the MessageSource'/'MessagePublisher' instances will decrement in their ownDisposeimplementations. once the ref count reacheszerotheMessageTypePathMappingDetails` could perform the clean up of its temporary messaging entity.
The text was updated successfully, but these errors were encountered:
The entire idea behind
MessagingEntityCreationOptions.CreateAsTemporary
is that the framework will clean up the messaging entity when it's no longer being used.The challenge here is that many
MessageSource
/MessagePublisher
instances may be referencing the same temporary entity and we can only clean it up once we know all of those instances that are referencing it have been thrown away. I think this will require some kind of reference counting mechanism on theMessageTypePathMappingDetails
instance that theMessageSource'/'MessagePublisher' instances will decrement in their own
Disposeimplementations. once the ref count reaches
zerothe
MessageTypePathMappingDetails` could perform the clean up of its temporary messaging entity.The text was updated successfully, but these errors were encountered: