I can figure out why my Event is not called. The declaration is like this
public event Action<SocketInput, IOutput> OnConnectionEvent;
its called like this OnConnectionEvent?.Invoke(input, output);
I am subscribing like this
OnConnectionEvent += HandleConnection;
I put a log and I see the code gets to OnConnectionEvent?.Invoke(input, output);
but my listener HandleConnection
is never called. Why?