Esempio n. 1
0
        /// <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);
        }
Esempio n. 2
0
        /// <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);
        }
Esempio n. 3
0
 /// <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;
 }