Exemplo n.º 1
0
        public void CloneEvents(HttpRequestResponse source)
        {
                        #if cooper || island || toffee
            foreach (TransferStartEventHandler item in source.OnTransferStart)
            {
                                #if cooper
                OnTransferStart.add(item);
                                #elif island
                OnTransferStart.Add(item);
                                #elif toffee
                OnTransferStart.addObject(item);
                                #endif
            }

            foreach (TransferEndEventHandler item in source.OnTransferEnd)
            {
                                #if cooper
                OnTransferEnd.add(item);
                                #elif island
                OnTransferEnd.Add(item);
                                #else
                OnTransferEnd.addObject(item);
                                #endif
            }

            foreach (TransferProgressEventHandler item in source.OnTransferProgress)
            {
                                #if cooper
                OnTransferProgress.add(item);
                                #elif island
                OnTransferProgress.Add(item);
                                #else
                OnTransferProgress.addObject(item);
                                #endif
            }
                        #elif echoes
            OnTransferStart    = source.OnTransferStart;
            OnTransferEnd      = source.OnTransferEnd;
            OnTransferProgress = source.OnTransferProgress;
                        #endif
        }
Exemplo n.º 2
0
 public void CloneEvents(HttpRequestResponse source)
 {
     OnTransferStart    = source.OnTransferStart;
     OnTransferEnd      = source.OnTransferEnd;
     OnTransferProgress = source.OnTransferProgress;
 }
Exemplo n.º 3
0
 public void CloneEvents(HttpRequestResponse source)
 {
     OnTransferStart = source.OnTransferStart;
     OnTransferEnd = source.OnTransferEnd;
     OnTransferProgress = source.OnTransferProgress;
 }