Exemple #1
0
        private void SubscribeToMessages()
        {
            MessagingCenter.Subscribe <StartUploadDataMessage>(this, "StartUploadDataMessage", async message =>
            {
                myUWPRunQueuedUpdateService = new UWPRunQueuedUpdateService();
                await myUWPRunQueuedUpdateService.StartAsync();
            });

            MessagingCenter.Subscribe <StopUploadDataMessage>(this, "StopUploadDataMessage", message =>
            {
                myUWPRunQueuedUpdateService.Stop();
            });
        }
Exemple #2
0
        private void SubscribeToMessages()
        {
            //TODO: should we unsubscribe these somewhere??
            MessagingCenter.Subscribe <StartUploadDataMessage>(this, "StartUploadDataMessage", async message =>
            {
                myUWPRunQueuedUpdateService = new UWPRunQueuedUpdateService();
                await myUWPRunQueuedUpdateService.StartAsync();
            });

            MessagingCenter.Subscribe <StopUploadDataMessage>(this, "StopUploadDataMessage", message =>
            {
                myUWPRunQueuedUpdateService.Stop();
            });
        }