/// <summary> /// <see cref="IMediaValidator.EndValidateMediaFiles"/> /// </summary> public bool EndValidateMediaFiles( IAsyncResult ar) { // Retrieve the delegate. AsyncValidateMediaFilesDelegate dlgt = (AsyncValidateMediaFilesDelegate)ar.AsyncState; // Call EndInvoke to retrieve the results. bool retValue = dlgt.EndInvoke(ar); return(retValue); }
/// <summary> /// <see cref="IMediaValidator.BeginValidateMediaFiles"/> /// </summary> public System.IAsyncResult BeginValidateMediaFiles( System.String[] mediaFileNames, AsyncCallback cb) { // Create the delegate. AsyncValidateMediaFilesDelegate dlgt = new AsyncValidateMediaFilesDelegate(this.ValidateMediaFiles); // Initiate the asychronous call. object asyncState = dlgt; IAsyncResult ar = dlgt.BeginInvoke( mediaFileNames, cb, asyncState); return(ar); }
/// <summary> /// <see cref="IMediaValidator.BeginValidateMediaFiles"/> /// </summary> public System.IAsyncResult BeginValidateMediaFiles( System.String[] mediaFileNames, AsyncCallback cb) { // Create the delegate. AsyncValidateMediaFilesDelegate dlgt = new AsyncValidateMediaFilesDelegate(this.ValidateMediaFiles); // Initiate the asychronous call. object asyncState = dlgt; IAsyncResult ar = dlgt.BeginInvoke( mediaFileNames, cb, asyncState); return ar; }