public override void NetLogoutHandler(NetLogout data) { base.NetLogoutHandler(data); if (Client.IsConnectedAndReady) { Client.Disconnect(); } }
/// <summary> // This method is executed when using this.Publish(new NetLogout()) /// </summary> public virtual void NetLogoutHandler(NetLogout data) { // Process the commands information. Also, you can publish new events by using the line below. // this.Publish(new AnotherEvent()) }