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 }
public void CloneEvents(HttpRequestResponse source) { OnTransferStart = source.OnTransferStart; OnTransferEnd = source.OnTransferEnd; OnTransferProgress = source.OnTransferProgress; }