If I understand correctly, everytime there is a connection request, a Behavior instance is initialized. So I save some information to the extended Behavior class. However, now I want to Send a message to some connected client only (for example, behavior instance that have property productBehavior.Type == ProductType.Main
).
How can I achieve this?
foreach (var session in this.Sessions.Sessions)
{
// How to get the behavior instance here, so I can get the property value?
}