private void SubscribeToMessages() { MessagingCenter.Subscribe <StartUploadDataMessage>(this, "StartUploadDataMessage", async message => { myUWPRunQueuedUpdateService = new UWPRunQueuedUpdateService(); await myUWPRunQueuedUpdateService.StartAsync(); }); MessagingCenter.Subscribe <StopUploadDataMessage>(this, "StopUploadDataMessage", message => { myUWPRunQueuedUpdateService.Stop(); }); }
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(); }); }