-
I have a scenario where I want to make the ChatHistory class an observable so that other classes can subscribe to changes in the ChatHistory. The extended class would notify the subscribers whenever a message is added to the ChatHistory. Unfortunately, I just realised that none of the methods used to add messages to the ChatHistory are virtual and hence, cannot be overridden. I was hoping to leverage polymorphism so that the rest of my code doesn't need to change and I can use this observable ChatHistory and the usual ChatHistory class interchangeably. How can I achieve this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
@MalayAgr thanks for this, it's some we should think about supporting in the framework. I'm converting this into a backlog issue |
Beta Was this translation helpful? Give feedback.
@MalayAgr thanks for this, it's some we should think about supporting in the framework. I'm converting this into a backlog issue