コード例 #1
0
        public MediaPlayerHandle(CoreDispatcher dispatcher)
        {
            BackgroundSettings.RemoveForegroundId();

            _dispatcher = dispatcher;

            _notifier = new BackgroundNotifier(_id);

            _subscriptionHandle = new BackgroundSubscriptionHandle(OnMessageReceivedFromBackground);

            _notificationQueue = new ValueSetWorkerQueue(HandleNotification);

            BackgroundSettings.SetForegroundId(_id);
        }
コード例 #2
0
ファイル: MediaPlayerHandle.cs プロジェクト: henricj/phonesm
        public MediaPlayerHandle(CoreDispatcher dispatcher)
        {
            BackgroundSettings.RemoveForegroundId();

            _dispatcher = dispatcher;

            _notifier = new BackgroundNotifier(_id);

            _subscriptionHandle = new BackgroundSubscriptionHandle(OnMessageReceivedFromBackground);

            _notificationQueue = new ValueSetWorkerQueue(HandleNotification);

            BackgroundSettings.SetForegroundId(_id);
        }