示例#1
0
        protected virtual void DoUPnPExternalRecieveAccess_RequestTransfer(object sender, FmdcEventArgs e)
        {
            TransferRequest req = e.Data as TransferRequest;

            req = transferManager.GetTransferReq(req.Key);
            if (req != null)
            {
                switch (req.Key)
                {
                case "upnp":
                    Success |= Functions.UPnPExternalRecieveAccess;
                    break;
                }
                transferManager.RemoveTransferReq(req.Key);
            }
        }
示例#2
0
        void Protocol_RequestTransfer(object sender, FmdcEventArgs e)
        {
            TransferRequest req = e.Data as TransferRequest;

            req = transferManager.GetTransferReq(req.Key);
            if (req != null)
            {
                e.Handled = true;
                e.Data    = req;
                transferManager.RemoveTransferReq(req.Key);
            }
        }
示例#3
0
        void Protocol_RequestTransfer(object sender, FmdcEventArgs e)
        {
            ITransfer       trans = sender as ITransfer;
            TransferRequest req   = e.Data as TransferRequest;

            _hasRequestTransfer = true;
            req = transferManager.GetTransferReq(req.Key);
            if (trans != null && req != null)
            {
                _hasValidRequestTransfer = true;
                e.Handled = true;
                e.Data    = req;
                transferManager.RemoveTransferReq(req.Key);
            }
        }