The XAML designer uses default constructors on types to provide intellisense, and WYSIWYG support.
In our samples, and providers, we make use of the ConnectedServiceProviderContext as a context, passed in. This is used in the constructors. With this pattern, the default constructor is only used for the designer and makes the code look strange, and coding confusing as it surfaces a designer requirement to add the parameterless constructor, but has no provider author value.
Context is a valuable property, used in most providers, and should be added to the base classes, set for the provider author, so there's less to worry about.
Proposal:
Add ConnectedServiceProviderContext to ConnectedServiceConfigurator
In ConnectedServiceProvider, when CreateConfiguratorAsync is called, set the ConnectedServiceProviderContext for the provider author, so they get the value, without having to write the code, and break the XAML designer
- Action is to update the samples to set the context externally, and leave the parameterless constructor for the XAML designer