protected virtual void OnConnectionEstablished(ConnectionEstablishedEventArgs e) { EventHandler <ConnectionEstablishedEventArgs> handler = ConnectionEstablished; if (handler != null) { handler(this, e); } }
protected virtual void OnConnectionEstablished(ConnectionEstablishedEventArgs e) { EventHandler<ConnectionEstablishedEventArgs> handler = ConnectionEstablished; if (handler != null) handler(this, e); }
private void ConnectionListenerOnConnectionEstablished(object sender, ConnectionEstablishedEventArgs args) { var client = new RemoteClient(new RequestDispatcher(args.Connection, new JsonRequestParser())); _connectedClients.Add(args.Connection, client); OnClientConnected(new RemoteClientConnectedEventArgs(client)); }