Example #1
0
        /// <remarks>
        /// AudioPlayer instances can share the same process.
        /// Static fields can be used to share state between AudioPlayer instances
        /// or to communicate with the Audio Streaming agent.
        /// </remarks>
        static AudioPlayer()
        {
            // Subscribe to the managed exception handler
            Deployment.Current.Dispatcher.BeginInvoke(delegate
            {
                Application.Current.UnhandledException += UnhandledException;
            });

            // Initalize IsolatedStorage
            IsolatedStorage = new IsolatedStorage();
            IsolatedStorage.Load();

            // Initalize IsolatedScheduler
            IsolatedScheduler = new IsolatedScheduler();
            IsolatedScheduler.Load();

            // Initalize Api Manager
            ApiManager = new Manager();
            
            // Login
            Login();

            // Schedule Timer
            ScheduleTimer = new DispatcherTimer();
            ScheduleTimer.Interval = new TimeSpan(0, 0, 1);
            ScheduleTimer.Tick += ScheduleTimer_Action;
        }
 public IsolatedSchedulerHelper()
 {
     IsolatedScheduler = new IsolatedScheduler();
 }