Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7429505
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T08:58:49+00:00 2026-05-29T08:58:49+00:00

This is the question about the flow of UI-interactive execution control in a .net

  • 0

This is the question about the flow of UI-interactive execution control in a .net application.

I have a Windows Phone (Silverlight) application.

A UI screen is showing some controls to a user. A user click “upload audio” button, and this triggers an CloudUploadProvider to initialte an upload. CloudUploadProvider in this case is called by the view model (or even I can route the execution request through a thrid-party class instance for correctness, doesn’t matter).

A CloudUploadProvider determines, if it runs for the first time, and if it doesn’t find a cloud account access credentials, it should ask a user to provide some.

Can I just call a Navigate to a cloud account login page from the CloudUploadProvider class, or is it better (architecture best practices-wise) to route the UI navigation request to some other class or even a view model that initiated the upload request.

I am trying to stick with MVVM pattern, but the question I have stumbled upon is whether a “back-stage” BL classes should be allowed to access UI directly?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T08:58:50+00:00Added an answer on May 29, 2026 at 8:58 am

    Having the CloudUploadProvider call Navigate for your application would be quite a hidden consequence for merely initiating an upload! I would instead suggest having the CloudUploadProvider throw an ArgumentException or raise an Event or return directly some error code or message which states ‘Missing Cloud Credentials’. This way, the UI can listen for this message and is in control over what happens when credentials are missing.

    What happens when credentials are missing doesn’t seem to be the business domain of the CloudUploadProvider. Instead, it should be the business domain of whatever piece of your application is using the CloudUploadProvider.

    Just my two cents though – hope this helps!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This question about Timers for windows services got me thinking: Say I have (and
This is a simple control-flow GOTO question, nothing about resource allocation. There are two
I have seen this question about deploying to WebSphere using the WAS ant tasks.
I have a question about this question . I posted a reply there but
I have a question about buffer overflaw, in this program : #include <stdio.h> #include
Followed this question about delayed_job and monit Its working on my development machine. But
This question is a follow up to my previous question about getting the HTML
I was reading this question about how to parse URLs out of web pages
I just came across this question about initializing local variables. Many of the answers
Follow up to this question about GNU make : I've got a directory, flac

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.