private static void MulticastReport(ComplexReport report) { var myDelegate = new ReportResultDelegate(PrintReportResult); myDelegate += SendReportResult; //myDelegate.Invoke("none"); report.BuildAsynchronously(myDelegate); }
private static void AsyncReport(ComplexReport report) { //явное создание экземпляра делегата var myDelegate = new ReportResultDelegate(PrintReportResult); report.BuildAsynchronously(myDelegate); //инлайним создание делегата в параметр метода //report.BuildAsynchronously(new ReportResultDelegate(PrintReportResult)); //неявное создание экземпляра делегата //report.BuildAsynchronously(PrintReportResult); }
public IndivAndReportResult(ReportResultDelegate callback) { _reportResult = callback; }
public void FinishAndReportResult(ReportResultDelegate callback) { _reportResult = callback; HandleServiceRequest(); }
public LAAndReportResult( ReportResultDelegate callback) { _reportResult = callback; }
public MeteringAndReportResult(ReportResultDelegate callback, bool bExpectError, uint expectedPlayCount) { _reportResult = callback; _bExpectError = bExpectError; _expectedPlayCount = expectedPlayCount; }
public SecureStopAndReportResult(ReportResultDelegate callback, bool bExpectError) { _reportResult = callback; _bExpectError = bExpectError; }
public DomainLeaveAndReportResult(ReportResultDelegate callback) { _reportResult = callback; }
public LAAndReportResult(ReportResultDelegate callback, SampleDataItem item) { sampleDataItem = item; _reportResult = callback; }
public RevocationAndReportResult(ReportResultDelegate callback) { _reportResult = callback; }
public PlaybackAndReportResult(MediaElement mediaElement, ReportResultDelegate callback) : base(mediaElement) { _reportResult = callback; _strExpectedError = null; }