public MainPage() { InitializeComponent(); signalR = App.signalR; signalR.Connected += SignalR_ConnectionChanged; signalR.ConnectionFailed += SignalR_ConnectionChanged; signalR.NewMessageReceived += SignalR_NewMessageReceived; }
public App() { InitializeComponent(); signalR = new SignalRService(); MainPage = new MainPage(); }