private async Task OnPingPongAsync(InfoQuery ping) { if (ping.Type != InfoQueryType.Get) { return; } // Send the "pong" response await this.SendAsync(ping.AsResponse()).ConfigureAwait(false); }
private async Task OnRosterPush(InfoQuery rosterPush) { var transport = XmppTransportManager.GetTransport(); await transport.SendAsync(rosterPush.AsResponse()).ConfigureAwait(false); }