Example #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();
            });
        }
Example #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();
            });
        }