static ProtocolState() { Settings = new XmppSettings(); Events = new XmppEvents(); Socket = new AsyncSocket(); State = new DisconnectedState(); Events.OnNewTag += EventsOnOnNewTag; Events.OnConnect += EventsOnOnConnect; Events.OnDisconnect += EventsOnOnDisconnect; }
static ProtocolState() { Settings = new XmppSettings(); Events = new XmppEvents(); Socket = new AsyncSocket(); State = new DisconnectedState(); Events.OnNewTag += EventsOnOnNewTag; Events.OnConnect += EventsOnOnConnect; Events.OnDisconnect += EventsOnOnDisconnect; // here changed Events.OnSend += EventsOnOnSend; Events.OnSendString += Events_OnSendString; Events.OnAuthenticate += Events_OnAuthenticate; }