コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }