Пример #1
0
        /// <summary>
        /// Requests that the deferrable operation be delayed.
        /// </summary>
        /// <returns>The deferral.</returns>
        public MediaPlayerDeferral GetDeferral()
        {
            var result = new MediaPlayerDeferral(cts.Token);

            deferrals.Add(result);
            return(result);
        }
 /// <summary>
 /// Requests that the deferrable operation be delayed.
 /// </summary>
 /// <returns>The deferral.</returns>
 public MediaPlayerDeferral GetDeferral()
 {
     var result = new MediaPlayerDeferral(cts.Token);
     deferrals.Add(result);
     return result;
 }