Exemplo n.º 1
0
        private static void MulticastReport(ComplexReport report)
        {
            var myDelegate = new ReportResultDelegate(PrintReportResult);

            myDelegate += SendReportResult;
            //myDelegate.Invoke("none");

            report.BuildAsynchronously(myDelegate);
        }
Exemplo n.º 2
0
        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;
 }
Exemplo n.º 6
0
 public void FinishAndReportResult(ReportResultDelegate callback)
 {
     _reportResult = callback;
     HandleServiceRequest();
 }
 public MeteringAndReportResult(ReportResultDelegate callback, bool bExpectError, uint expectedPlayCount)
 {
     _reportResult      = callback;
     _bExpectError      = bExpectError;
     _expectedPlayCount = expectedPlayCount;
 }
Exemplo n.º 8
0
 public SecureStopAndReportResult(ReportResultDelegate callback, bool bExpectError)
 {
     _reportResult = callback;
     _bExpectError = bExpectError;
 }
Exemplo n.º 9
0
 public DomainLeaveAndReportResult(ReportResultDelegate callback)
 {
     _reportResult = callback;
 }
 public LAAndReportResult(ReportResultDelegate callback, SampleDataItem item)
 {
     sampleDataItem = item;
     _reportResult  = callback;
 }
Exemplo n.º 11
0
 public RevocationAndReportResult(ReportResultDelegate callback)
 {
     _reportResult = callback;
 }
Exemplo n.º 12
0
 public PlaybackAndReportResult(MediaElement mediaElement, ReportResultDelegate callback) : base(mediaElement)
 {
     _reportResult     = callback;
     _strExpectedError = null;
 }