using System.Collections.Generic; using System.Windows; using System.Windows.Threading; using MatrixIO.Collections; using MatrixIO.IO; namespace SLTest { internal class MpegTsPortabilityFactory : PortabilityFactory { #region List Creation public override IList CreateList() { return new DispatchingObservableList(); } public override IList CreateList(int capacity) { return new DispatchingObservableList(capacity); } public override IList CreateList(IEnumerable collection) { return new DispatchingObservableList(collection); } #endregion private readonly Dispatcher _dispatcher = Deployment.Current.Dispatcher; public override void DispatchAction(System.Action action) { _dispatcher.BeginInvoke(action); } public override void TraceWriteLine(object value, string category = null) { } } }