private void CalculateCanCreateServiceInstance()
{
this.CanCreateServiceInstance = false;
// New IoT Hub instance creation is not yet supported, so disable the link unconditionally
#if false
string noServicesText = Resource.NoServiceInstancesText;
this.CanCreateServiceInstance = this.Authenticator.IsAuthenticated;
if (this.CanCreateServiceInstance)
{
this.CanCreateServiceInstance = (await this.Authenticator.SelectedAccountHasSubscriptions());
if (!this.CanCreateServiceInstance)
{
noServicesText = Resource.NoServiceInstancesText;
}
}
this.NoServiceInstancesText = noServicesText;
#endif
}
}