private void SendPacketAsync(ITransport transport, string caption, TLObject data, Action <bool> callback, Action <TcpTransportResult> faultCallback = null) { if (_deviceInfo != null && _deviceInfo.IsBackground) { } transport.SendPacketAsync( caption, data.ToBytes(), callback, faultCallback); }
private void SendPacketAsync(ITransport transport, string caption, TLObject data, Action <bool> callback, Action <TcpTransportResult> faultCallback = null) { if (_deviceInfo != null && _deviceInfo.IsBackground) { if (caption.Contains("account.updateStatus")) { } Log.SyncWrite("Background MTProto send " + caption); } transport.SendPacketAsync( caption, data.ToBytes(), callback, faultCallback); }