The GraphPresenter requires an IBaseRequestBuilder implementation to determine what data to fetch from Graph. We don't currently have a good way to define the RequestBuilder property in XAML, so this must be done from code. The problem is that if the provider state changes after the RequestBuilder property is set, the GraphPresenter will fail. The way to fix this is to nullify the RequestBuilder, and then re-set it.
Describe the solution
Update the GraphPresenter to listen for changes in the global provider state, and do whatever is required to keep the control functional after a login change.
The GraphPresenter should not display any content if the global provider is not signed in.
Describe alternatives you've considered
None
Additional context & Screenshots
All of this code is required to support a single instance of the GraphPresenter control:
Describe the problem this feature would solve
The
GraphPresenter
requires anIBaseRequestBuilder
implementation to determine what data to fetch from Graph. We don't currently have a good way to define theRequestBuilder
property in XAML, so this must be done from code. The problem is that if the provider state changes after theRequestBuilder
property is set, theGraphPresenter
will fail. The way to fix this is to nullify theRequestBuilder
, and then re-set it.Describe the solution
Update the
GraphPresenter
to listen for changes in the global provider state, and do whatever is required to keep the control functional after a login change.The
GraphPresenter
should not display any content if the global provider is not signed in.Describe alternatives you've considered
None
Additional context & Screenshots
All of this code is required to support a single instance of the
GraphPresenter
control: